当前位置:文档之家› 校园网网站设计——外文翻译

校园网网站设计——外文翻译

湖南工学院本科外文翻译基于JSP网页自动生成工具的设计与实现Produce the design of the tool and realizeautomatically on the basis of JSP web page学院:计算机与信息科学学院专业:信息与计算科学学生姓名:何苏蓓学号:11301440110指导教师:王新祥完成日期:2015-6湖南工学院Produce the design of the tool and realizeautomatically 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 developer's first-selected technology. But because JSP has relatively high expectations 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 method .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 certain 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 all 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 codes 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 June 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 advantages. 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 centre, JSPhas 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 website's logic are correlated with 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 needn't understand Java code, the personnel upgrading Javas needn't be experts who design web page either. This can 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 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 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 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 application 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 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 grasp. 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 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 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 produces some commonly used frame structure in advance, uses the family to choose the template from the template storehouse conveniently according to the needs of one's 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, classify 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 standard 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 in 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 script 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 characteristicEasy to use: The labels in JSP and general HTML marks 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 only need use this label storehouse in other systems afterwards,needn't 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 concentrate 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 safeguarded 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 fields 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 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 with 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 inquire about; The Chinese and English name of the row and some other attribute that TC-Columns form includes belonging to all forms of this user's in this database. For instance can show, can inquire about. Basic information of the database that these basic forms of two systems provide to user's institute 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 choose the templates used from the template storehouse according to the need.The template is dealt with some: According to template that user choose, system transferdesignated template deal with module is it punish to go on to these template. When dealing with the label that the procedure meets in the 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 offered 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 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 .Realization 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 following principle .Should try one's 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 user's static result to the page, limit the use of the label.Try one's 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 one's best to classify to go on to use, form labels. Do not use and realize this application repeatedly in each 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 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 labels 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 oflabel, description information of the label ,etc.Realization of the label: One label first special Java type, this each must inherit 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 template: 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.While 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-Page2000 of Microsoft 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 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. Because 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 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 Java) [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应用的一个重要方面,而JSP又是Web开发的最先进的技术,是当前Web开发人员的首选技术。

相关主题