版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、精选优质文档倾情为你奉上精选优质文档倾情为你奉上专心专注专业专心专注专业精选优质文档倾情为你奉上专心专注专业湖南工学院本科外文翻译基于JSP网页自动生成工具的设计与实现Produce the design of the tool and realizeautomatically on the basis of JSP web page学 院: 计算机与信息科学学院 专 业: 信息与计算科学 学 生 姓 名: 何苏蓓 学 号: 指 导 教 师: 王新祥 完 成 日 期: 2015-6 湖南工学院Produce the design of the tool and realize automati
2、cally on the basis of JSP web pageAlfred V.Aho and John E.HopcroftIt is an important respect that Internet uses that Web develops technology, and JSP is the most advanced technology that Web is developed, it is present Web developers first-selected technology. But because JSP has relatively high exp
3、ectations for Web developer, a lot of general Web developers can not use this advanced technology. The discussion produces the design of the tool and realizes automatically on the basis of JSP web page of the template and label storehouse, put forward concrete design philosophy and implementation me
4、thod . With the popularization of WWW (World Wide Web), the technology of the dynamic web page is developed rapidly too. From original CGI (Common Gateway Interface) to ASP (Active Server Page), have met the web page developer to the demand for developing technology of the dynamic web page to a cert
5、ain extent. But no matter CGI or ASP have certain limitation, for instance, consuming to resources of the server of CGI, ASP can only be used etc. with Microsoft IIS, all these have limited scope of application of the technology, have hindered their popularization greatly. The vast page developers a
6、ll look forward to a kind of unified page and develop technology earnestly, characteristic that this technology there should be:Have nothing to do with the operating platform, can run on any Web or the application program server, Show the logic and page of application program that separates, Offer c
7、odes to put in an position, simplify and develop the course based on interactive application program of Web.JSP (Java Server Page) technology is designed and used for responding to the request that like this. JSP is developed technology by the new web page that Sun Micro System Company put out in Ju
8、ne of 1999, it is that Web based on Java Serv-let and the whole Java system develops technology, and Servlet2. Expansion of 1API. Utilize this technology, can set up advanced, safely and stepping dynamic websites of the platform. Java is the future mainstream to develop technology, have a lot of adv
9、antages. JSP is Java important application technology on Internet/Intranet Web, get extensive support and admit, it can conbine with various kinds of Java technology together intactly, thus realize very complicated application.As a kind of technology of development based on text, taking showing as c
10、entre, JSP has offered all advantages of Java Servlet. Logic function in order to make sure and showing the function was separated, JSP can already work with JavaBeans, Enterprise JavaBeans (EJB) and Servlet. The developer of JSP can finish the work that majority and websites logic are correlated wi
11、th through using JavaBeans, EJB and Servlet, and only assign the work shown to JSP page to finish. Content and show advantage that logic separate lie in, upgrade person, page of appearance neednt understand Java code, the personnel upgrading Javas neednt be experts who design web page either. This c
12、an define Web template in JSP page with Javas, in order to set up websites made up of a page with similar appearance. Java completion data offer, have Java code among template, this mean template these can write by one HTML person is it maintain to come.JSP develops technology as the web page of the
13、 mainstream at present, has the following characteristicsSeparate the formulation and showing of the content: Using JSP technology, the page developer of Web can use HTML or XML identification to design and format the final page. Use JSP identification or bound foot turn into dynamic content of page
14、 actually (whether content according to is it come change to ask). Produce logic of content of the identification and JavaBeans package, truss up of the little script encapsulation, all scripts run in the end of the server. If key logic among identification and JavaBeans, then other people, such as
15、Web administrative staff and page designer encapsulation, can edit and use JSP page, and does not influence the formulation of the content .Emphasize the reusable package: Most JSP pages depend on the reusable one, the package stepping the platform finish more complicated treatment with required app
16、lication program. Benefitting from the independence of operating platform of Java, the developer can be very convenient to share and exchange and carry out the ordinary package that operated, or make these packages used by more users. The method based on package has accelerated the total development
17、 course, the efficiency of improving the project and developing wholly greatly.Though JSP is powerful, it requires the web page developer should be quite familiar with Java. There are still relatively few Java programmers now, for general web page developer, the grammar of JSP is more difficult to g
18、rasp. So, need a kind of web page developing instrument and offer commonly used JSP application to general web page developer, is it understand general page develop developer of technology (HTML) can use strong function of JSP too only to let.Systematic design object and main technology of useDesign
19、 object: System this design object for understand but HTML understand general web page developer of JSP offer a web page developing instrument at all only, enable them to follow the systematic file, use the daily function of JSP through the label, produce one finally and only include static HTML and
20、 dynamic JSP web page of JSP label.Main technology: This system is in the design, consider using the technology of the template and JSP label to realize mainly.Technology of the template: The technology of the template is widely applied to various kinds of development and application system. It prod
21、uces some commonly used frame structure in advance, uses the family to choose the template from the template storehouse conveniently according to the needs of ones own one, is it is it put up to go again by oneself to need, save construction period in user, facilitate use of user. In this system, cl
22、assify the page according to the function type, sum up the commonly used page type, produce the template storehouse. Storehouse technology of the label: In JSP, movements can create and visit the language target of the procedure and influence the element exported and flowed. JSP has defined six stan
23、dard movements. Except six standard movement these, user can define own movement finish the specific function. These movements are known as the customer movement, they are the reusable procedure module. Through movement these, programmer can some encapsulation stand up too display function of page i
24、n JSP page, make the whole page more succinct and easier to maintain. In a JSP page, movements were transfered through the customer label in these customers. And the label storehouse (Tag Library) is the set of the customer label. JSP label storehouse is that one kind produces the method based on sc
25、ript of XML through JavaBeans. It is one of the greatest characteristics of JSP. Through the label storehouse, can expand JSP application unrestrictedly, finish any complicated application demand.JSP label storehouse has the following characteristic Easy to use: The labels in JSP and general HTML ma
26、rks are totally the same in appearance, it is as convenient as ordinary HTML mark to use.The easy code is paid most attention to: Every label in the label storehouse can finish certain function. Define ready to eat one label storehouse, is it pack one Jar file the label storehouse to need only, then
27、 only need use this label storehouse in other systems afterwards, neednt develop codes again, has raised the system and developed efficiency greatly, have reduced the development cost.The easy code is safeguarded: All application logic is encapsulated in label processor and JavaBeans, all labels con
28、centrate on a label storehouse. If need to upgrade codes or need to revise the function on a web page, only need to revise the corresponding label. Maintain way in unison through this kind, it is unnecessary in each web page is it is it fix to act as to get onning, have reduce the work load safeguar
29、ded greatly, has economized the cost of safeguarding.The easy system is expanded: If need to add the new function to the system, only need to define a new label to finish this function, do not need to do any change to other respects of the system. Can inherit JSP normal characteristics of various fi
30、elds in the label storehouse. Can expand and increase the function of JSP unrestrictedly like this, and does not need to wait for the appearance of the next edition JSP .Systematic composition and realizingThe system making up: This system is made up of four parts mainlyThe database joins some: This
31、 system supports several daily databases, including Oracle, Sybase, MSSQLServer, My SQL and DB2, use JDBC and database to link to each other according to database type and database name, user name, password that users offer that users choose. The basic form of system produces some: After joining wit
32、h the database, produce the basic form TC-Tables and TC-Columns of two systems according to the user name linking to each other with the database, TC-Tables form includes English name, Chinese name and some attribute of form belonging to this user in this database, for instance can revise, can inqui
33、re about; The Chinese and English name of the row and some other attribute that TC-Columns form includes belonging to all forms of this users in this database. For instance can show, can inquire about. Basic information of the database that these basic forms of two systems provide to users institute
34、 for use in the course of development of the whole system. The template is chosen to produce some with the web page: This part is a key part of a system. It includes two pieces of sub module .The template is chosen some: The system offers the template to user and chooses the interface, let users cho
35、ose the templates used from the template storehouse according to the need.The template is dealt with some: According to template that user choose, system transfer designated template deal with module is it punish to go on to these template. When dealing with the label that the procedure meets in the
36、 template, offer the mutual interface to user, let user input parameter for designated label, prove system validity of label that user input. Finished the formulation of JSP page systematically finally.Web page preview is with revising some: After the web page was produced out, the system has offere
37、d a web page preview window and code to user and looked over that revises the window. Through this preview window, users can look at the result of JSP page produced out in advance. If user static result of respect in page very satisfied, user can through code look over revise window revise HTML code
38、 of code. If users have further demands for the static result of the page, the system has also offered a piece of interface which transfers DreamWeaver editing machine to user, users can use it to carry on further modification and perfection to the static result of JSP page that is produced out .Rea
39、lization of the template storehouse and label storehouseThe planning and design of the label storehouse are essential in the whole system design, efficiency that the degree and system that are put in an position have operated that its relation has reached codes. Its planning should follow the follow
40、ing principle . Should try ones best little including static HTML among label. To general user, the label is transparent. Users can not look over and revise labels. If include too many static HT-ML sentence in the label, will influence the modification and perfection of users static result to the pa
41、ge, limit the use of the label. Try ones best to raise the paying most attention to degree of the code. Is it is it is it is it is it is it get to JSP public JSP out to withdraw to use to try ones best to classify to go on to use, form labels. Do not use and realize this application repeatedly in ea
42、ch label. While revising and perfecting to using like this, only need to revise this label, maintenance of the easy code.Facilitate users use. While designing the label storehouse, should fully consider users operating position, it can very easy and understanding and using labels conveniently to use
43、 the family.Definition of the label storehouse: Define a label storehouse, must define a label storehouse and describe the file (TLD) at first. This is a file of script based on XML, have defined the edition of XML in this file, codes used, the edition, name and definition and parameter of all label
44、s included in this storehouse of the label storehouse of the edition of the label storehouse, JSP used describe, including the name of the label, corresponding Javas of label, description information of the label ,etc.Realization of the label: One label first special Java type, this each must inheri
45、t TagSupports, this each is in javax. servlet. jsp. Define in tagext bag. In the labels, the parameter which includes this label initializes the subject treatment method (Handler) of method (Set/Get), label and method available for making the first class label to adjust,etc.Realization of the templa
46、te: A template is that one contains JSP file that labels quoted. In order to quote the labels defined in the template, must introduce the label storehouse at first . Among them uri appoints the label storehouse to describe the route of the file ; Prefixes used when prefix appoints to quote labels.Wh
47、ile quoting the designated label in the template, use the designated prefix while introducing the label storehouse, appoint the name of the label; It is the parameter assignment of the label.What this systematic subject procedure making is used is JBuilder 6.0 of Borland Company, it is Front of Micr
48、osoft Company that the template is developed and used, what the label storehouse is developed and used is UltraEdit editing machine, what JDK is adopted is JDK1. 4. The system testing environment is JRun3. 0.Java future mainstream to develop language, and Java using JSP will become major technology
49、that Web will be developed in the future too mainly at Web. This system has adopted the label storehouse, one of the biggest characteristics of JSP, enable the general Web developer to use JSP strong dynamic page function conveniently too, develop JSP dynamic Web page of the modern techniques. Becau
50、se this system adopts Java to develop, can run under the operating system of any support graphic interface, have realized complete having nothing to do with the platform. This system is easy to expand and perfect. Can consider offering the interface to user afterwards, will use the family to expand
51、the template storehouse and label storehouse by oneself, strengthen the systematic function further.List of references: 1 Cay S. Horstmann,Gary Cornell. Java 2 key technology (CoreJava 2) M . Beijing: Publishing house of the mechanical industry.2 Bruce Eckel. Java programming thought (Thinking in Ja
52、va) M . Beijing:Publishing house of the mechanical industry.3 Joseph L. Weber. Java 2 programming is explained in detail (Using Java 2) M .Beijing: Electronic Industry Press.4 Borland Company. Building Applications with JBuilder.基于JSP网页自动生成工具的设计与实现Alfred V.Aho and John E.HopcroftWeb开发技术是Internet应用的一
53、个重要方面,而JSP又是Web开发的最先进的技术,是当前Web开发人员的首选技术。但是由于JSP对Web开发人员要求较高,所以许多一般的Web开发人员还不能够使用这一项先进的技术。讨论基于模板和标签库的JSP网页自动生成工具的设计和实现,提出具体的设计思想和实现方法。 随着WWW(World Wide Web)的普及,动态网页技术也急速发展。从原来的CGI(Common Gateway Interface)到ASP(Active Server Page),都从某种程度上满足了网页开发人员对动态网页开发技术的需求。但是不管是CGI还是ASP都存在一定的局限性,如CGI对服务器资源的耗费,ASP只
54、能同Microsoft IIS一起使用等,这些都限制了这些技术的使用范围,极大地阻碍了它们的推广。广大的页面开发人员都热切地盼望一种统一的页面开发技术,该技术应该具有的特点:与操作平台无关,能够在任何Web或应用程序服务器上运行;将应用程序逻辑和页面显示分离;提供代码重用,简化开发基于Web的交互式应用程序的过程。 JSP(Java Server Page)技术就是被设计用来满足这样的要求的。JSP是由Sun MicroSystem公司于1999年6月推出的新的网页开发技术,它是基于Java Servlet以及整个Java体系的Web开发技术,是Servlet21API的扩展。利用这一技术,可
55、以建立先进、安全和跨平台的动态网站。 Java是未来的主流开发技术,具有很多优势。JSP则是Java在InternetIntranet Web上的重要应用技术,得到了广泛的支持和承认,它可以和各种Java技术完好地结合在一起,从而实现非常复杂的应用。 作为一种基于文本的、以显示为中心的开发技术,JSP提供了Java Servlet的所有好处。为了做到逻辑功能和显示功能分开,JSP已经可以和JavaBeans、Enterprise JavaBeans(EJB)和Servlet一起工作。JSP的开发人员可以通过使用JavaBeans、EJB和Servlet来完成大部分与网站逻辑相关的工作,而仅仅把
56、显示的工作交给JSP页面来完成。内容和显示逻辑分开的好处在于,更新页面外观的人员不必懂得Java代码,而更新Java类的人员也不必是设计网页的行家。这就可以用带Java类的JSP页面来定义Web模板,以建立一个具有相似外观的页面组成的网站。Java类完成数据提供,在模板中就没有Java代码,这意味着这些模板可以由一个HTML编写人员来维护。 JSP是当前主流的网页开发技术,它的主要特点(1)将内容的生成和显示进行分离:使用JSP技术,Web页面开发人员可以使用HTML或者XML标识来设计和格式化最终的页面。使用JSP标识或者小脚本来生成页面上的动态内容(内容是根据请求来变化的)。生成内容的逻辑
57、被封装在标识和JavaBeans组件中,并且捆绑在小脚本中,所有的脚本在服务器端运行。如果核心逻辑被封装在标识和JavaBeans中,那么其他人,如Web管理人员和页面设计者,能够编辑和使用JSP页面,而不影响内容的生成。 (2)强调可重用的组件:绝大多数JSP页面依赖于可重用的、跨平台的组件来完成应用程序所要求的更为复杂的处理。得益于Java的操作平台无关性,开发人员能够很方便共享和交流执行普通操作的组件,或者使得这些组件为更多的使用者所使用。基于组件的方法加速了总体的开发过程,极大地提高了项目整体开发的效率。 虽然JSP功能强大,但是它要求网页开发人员对Java要相当熟悉。而现在Java程
58、序员还比较少,对一般的网页开发人员来说,JSP的语法还是比较难于掌握的。所以,就需要有一种网页开发工具,为一般的网页开发人员提供常用的JSP应用,让只懂得一般页面开发技术(HTML)的开发人员也能够使用JSP的强大功能。 系统设计目标和使用的主要技术: 设计目标:本系统的设计目标是为只懂得HTML但完全不了解JSP的一般网页开发人员提供一个网页开发工具,使他们能够根据系统文档,通过标签使用JSP的常用功能,最后生成一个只包含静态HTML和JSP标签的动态JSP网页。 主要技术 :本系统在设计时,主要考虑使用模板和JSP标签的技术来实现。 模板技术 :模板技术被广泛地应用于各种开发和应用系统中。
59、它预先生成一些常用的框架结构,使用户可以根据自己的需要方便地从模板库中选择模板,而不用自己重新去搭建,节省了用户的开发时间,方便了用户的使用。在本系统中,将页面按照功能类型进行分类,归纳出常用的页面类型,生成模板库。 标签库技术 ,在JSP中,动作是可以创造与访问程序语言对象和影响输出流的元素。JSP定义了六个标准的动作。除了这六个标准动作以外,用户可以定义自己的动作来完成特定的功能。这些动作被称为客户化动作,它们是可重用的程序模块。通过这些动作,程序员就可以在JSP页面中把页面的显示功能也部分地封装起来,使整个页面更加简洁和易于维护。在一个JSP页面中,这些客户化动作是通过客户化标签来调用的
60、。而标签库(Tag Library)就是客户化标签的集合。 JSP标签库是一种通过JavaBeans生成基于XML的脚本的方法。它是JSP的最大特点之一。通过标签库,能够无限制地扩展JSP应用,完成任何复杂的应用需求。 JSP标签库具有以下特点 易于使用:JSP中的标签和一般的HTML标记外表上是完全一样的,使用起来和普通的HTML标记一样方便。 易于代码重用:标签库中的每一个标签都能完成一定的功能。一旦定义好了一个标签库,只需要把这个标签库包装成一个Jar文件,那么以后只要在别的系统中使用这个标签库就行了,而不用重新开发代码,极大地提高了系统开发效率,降低了开发成本。 易于代码维护:所有的应
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 江西省吉安市遂川县2024年中考模拟数学试题附答案
- 部编小学语文-一年级下全册教案
- 科学育种技术提升作物光合作用效率
- 园林景观工程施工组织设计技术标
- 高一化学二专题化学科学与人类文明练习
- 2024届北京海淀外国语高三(最后冲刺)化学试卷含解析
- 2024届江苏盐城市时杨中学高考临考冲刺化学试卷含解析
- 2024高中地理第2章区域生态环境建设第1节第2课时荒漠化的人为原因和防治学案新人教版必修3
- 2024高中物理第三章相互作用5力的分解课后作业含解析新人教版必修1
- 2024高中语文第7单元韩非子蚜第1课郑人有且买履者练习含解析新人教版选修先秦诸子蚜
- 2025年度爱读书学长策划的读书讲座系列合同2篇
- 广东省深圳市宝安区2024-2025学年八年级英语上学期1月期末英语试卷(含答案)
- 《设备房管理标准》课件
- 《招标投标法》考试题库200题(含答案)
- 《交通运输行业安全生产监督检查工作指南 第2部分:道路运输》
- 初二生物期末质量分析及整改措施
- 公交车站台服务规范与安全意识
- 云南省楚雄彝族自治州2024届高三上学期期末考试数学试题(解析版)
- 苏州工业园区ESG发展白皮书
- 《边缘计算单元与交通信号控制机的数据通信标准编制说明》
- 《安防摄像机智能化指标要求和评估方法》
评论
0/150
提交评论