关于java技术毕业论文设计外文翻译.docx
《关于java技术毕业论文设计外文翻译.docx》由会员分享,可在线阅读,更多相关《关于java技术毕业论文设计外文翻译.docx(13页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、关于java技术 毕业论文设计外文翻译 附录一外文资料原文: ABOUT JA V A TECHNOLOGY Servlets and JSP: An Overview 1.What are Java Servlets? Servlets are Java technologys answer to CGI programming. They are programs that run on a Web server and build Web pages. Building Web pages on the fly is useful (and commonly done) for a nu
2、mber of reasons: ?The Web page is based on data submitted by the user. For example the results pages from search engines are generated this way, and programs that process orders for e-commerce sites do this as well. ?The data changes frequently. For example, a weather-report or news headlines page m
3、ight build the page dynamically, perhaps returning a previously built page if it is still up to date. ?The Web page uses information from corporate databases or other such sources. For example, you would use this for making a Web page at an on-line store that lists current prices and number of items
4、 in stock. 2.What are the Advantage of Servlets Over Traditional CGI? Java servlets are more efficient, easier to use, more powerful, more portable, and cheaper than traditional CGI and than many alternative CGI-like technologies. (More importantly, servlet developers get paid more than Perl program
5、mers :-). ?Efficient. With traditional CGI, a new process is started for each HTTP request. If the CGI program does a relatively fast operation, the overhead of starting the process can dominate the execution time. With servlets, the Java Virtual Machine stays up, and each request is handled by a li
6、ghtweight Java thread, not a heavyweight operating system process. Similarly, in traditional CGI, if there are N simultaneous request to the same CGI program, then the code for the CGI program is loaded into memory N times. With servlets, however, there are N threads but only a single copy of the se
7、rvlet class. Servlets also have more alternatives than do regular CGI programs for optimizations such as caching previous computations, keeping database connections open, and the like. ?Convenient. Hey, you already know Java. Why learn Perl too? Besides the convenience of being able to use a familia
8、r language, servlets have an extensive infrastructure for automatically parsing and decoding HTML form data, reading and setting HTTP headers, handling cookies, tracking sessions, and many other such utilities. ?Powerful. Java servlets let you easily do several things that are difficult or impossibl
9、e with regular CGI. For one thing, servlets can talk directly to the Web server (regular CGI programs cant). This simplifies operations that need to look up images and other data stored in standard places. Servlets can also share data among each other, making useful things like database connection p
10、ools easy to implement. They can also maintain information from request to request, simplifying things like session tracking and caching of previous computations. ?Portable. Servlets are written in Java and follow a well-standardized API. Consequently, servlets written for, say I-Planet Enterprise S
11、erver can run virtually unchanged on Apache, Microsoft IIS, or WebStar. Servlets are supported directly or via a plugin on almost every major Web server. ?Inexpensive. There are a number of free or very inexpensive Web servers available that are good for personal use or low-volume Web sites. However
12、, with the major exception of Apache, which is free, most commercial-quality Web servers are relatively expensive. Nevertheless, once you have a Web server, no matter the cost of that server, adding servlet support to it (if it doesnt come preconfigured to support servlets) is generally free or chea
13、p. 3. What is JSP? Java Server Pages (JSP) is a technology that lets you mix regular, static HTML with dynamically-generated HTML. Many Web pages that are built by CGI programs are mostly static, with the dynamic part limited to a few small locations. But most CGI variations, including servlets, mak
14、e you generate the entire page via your program, even though most of it is always the same. JSP lets you create the two parts separately. Heres an example: Welcome to Our Store Welcome to Our Store Welcome, To access your account settings, click here. Regular HTML for all the rest of the on-line sto
15、res Web page. 4. What are the Advantages of JSP? ?vs. Active Server Pages (ASP). ASP is a similar technology from Microsoft. The advantages of JSP are twofold. First, the dynamic part is written in Java, not Visual Basic or other MS-specific language, so it is more powerful and easier to use. Second
16、, it is portable to other operating systems and non-Microsoft Web servers. ?vs. Pure Servlets. JSP doesnt give you anything that you couldnt in principle do with a servlet. But it is more convenient to write (and to modify!) regular HTML than to have a zillion println statements that generate the HT
17、ML. Plus, by separating the look from the content you can put different people on different tasks: your Web page design experts can build the HTML, leaving places for your servlet programmers to insert the dynamic content. ?vs. Server-Side Includes (SSI). SSI is a widely-supported technology for inc
18、luding externally-defined pieces into a static Web page. JSP is better because it lets you use servlets instead of a separate program to generate that dynamic part. Besides, SSI is really only intended for simple inclusions, not for real programs that use form data, make database connections, and th
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 关于java技术 毕业论文设计外文翻译 关于 java 技术 毕业论文 设计 外文 翻译
限制150内