JAVA外文文献+翻译.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《JAVA外文文献+翻译.pdf》由会员分享,可在线阅读,更多相关《JAVA外文文献+翻译.pdf(18页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、燕山大学本科生毕业设计(翻译)1 Java and the Internet If Java is,in fact,yet another computer programming language,you may question why it is so important and why it is being promoted as a revolutionary step in computer programming。The answer isnt immediately obvious if youre coming from a traditional programming
2、perspective。Although Java is very useful for solving traditional stand-alone programming problems,it is also important because it will solve programming problems on the World Wide Web。1.Client-side programming The Webs initial serverbrowser design provided for interactive content,but the interactivi
3、ty was completely provided by the server.The server produced static pages for the client browser,which would simply interpret and display them。Basic HTML contains simple mechanisms for data gathering:textentry boxes,check boxes,radio boxes,lists and drop-down lists,as well as a button that can only
4、be programmed to reset the data on the form or“submit”the data on the form back to the server。This submission passes through the Common Gateway Interface(CGI)provided on all Web servers.The text within the submission tells CGI what to do with it.The most common action is to run a program located on
5、the server in a directory thats typically called“cgi-bin。”(If you watch the address window at the top of your browser when you push a button on a Web page,you can sometimes see“cgibin within all the gobbledygook there.)These programs can be written in most languages.Perl is a common choice because i
6、t is designed for text manipulation and is interpreted,so it can be installed on any server regardless of processor or operating system.Many powerful Web sites today are built strictly on CGI,and you can in fact do nearly anything with it。However,Web sites built on CGI programs can rapidly become ov
7、erly complicated to maintain,and there is also the problem of 燕山大学本科生毕业设计(翻译)2 response time。The response of a CGI program depends on how much data must be sent,as well as the load on both the server and the Internet.(On top of this,starting a CGI program tends to be slow.)The initial designers of t
8、he Web did not foresee how rapidly this bandwidth would be exhausted for the kinds of applications people developed.For example,any sort of dynamic graphing is nearly impossible to perform with consistency because a GIF file must be created and moved from the server to the client for each version of
9、 the graph。And youve no doubt had direct experience with something as simple as validating the data on an input form.You press the submit button on a page;the data is shipped back to the server;the server starts a CGI program that discovers an error,formats an HTML page informing you of the error,an
10、d then sends the page back to you;you must then back up a page and try again.Not only is this slow,its inelegant。The solution is client-side programming.Most machines that run Web browsers are powerful engines capable of doing vast work,and with the original static HTML approach they are sitting the
11、re,just idly waiting for the server to dish up the next page.Client-side programming means that the Web browser is harnessed to do whatever work it can,and the result for the user is a much speedier and more interactive experience at your Web site。The problem with discussions of clientside programmi
12、ng is that they arent very different from discussions of programming in general。The parameters are almost the same,but the platform is different:a Web browser is like a limited operating system。In the end,you must still program,and this accounts for the dizzying array of problems and solutions produ
13、ced by client-side programming。The rest of this section provides an overview of the issues and approaches in client-side programming.2。Plugins One of the most significant steps forward in clientside programming is the development of the plugin.This is a way for a programmer to add new functionality
14、to the browser by downloading a piece of code that plugs itself into 燕山大学本科生毕业设计(翻译)3 the appropriate spot in the browser。It tells the browser“from now on you can perform this new activity.”(You need to download the plugin only once。)Some fast and powerful behavior is added to browsers via plugins,b
15、ut writing a plugin is not a trivial task,and isnt something youd want to do as part of the process of building a particular site。The value of the plug-in for clientside programming is that it allows an expert programmer to develop a new language and add that language to a browser without the permis
16、sion of the browser manufacturer。Thus,plugins provide a“back door”that allows the creation of new client-side programming languages(although not all languages are implemented as plug-ins).3.Scripting languages Plug-ins resulted in an explosion of scripting languages.With a scripting language you emb
17、ed the source code for your clientside program directly into the HTML page,and the plug-in that interprets that language is automatically activated while the HTML page is being displayed.Scripting languages tend to be reasonably easy to understand and,because they are simply text that is part of an
18、HTML page,they load very quickly as part of the single server hit required to procure that page。The trade-off is that your code is exposed for everyone to see(and steal).Generally,however,you arent doing amazingly sophisticated things with scripting languages so this is not too much of a hardship.Th
19、is points out that the scripting languages used inside Web browsers are really intended to solve specific types of problems,primarily the creation of richer and more interactive graphical user interfaces(GUIs).However,a scripting language might solve 80 percent of the problems encountered in clients
20、ide programming。Your problems might very well fit completely within that 80 percent,and since scripting languages can allow easier and faster development,you should probably consider a scripting language before looking at a more involved solution such as Java or ActiveX programming.The most commonly
21、 discussed browser scripting languages are JavaScript(which has nothing to do with Java;its named that way just to grab some of 燕山大学本科生毕业设计(翻译)4 Javas marketing momentum),VBScript(which looks like Visual Basic),and Tcl/Tk,which comes from the popular cross-platform GUIbuilding language.There are oth
22、ers out there,and no doubt more in development.JavaScript is probably the most commonly supported.It comes built into both Netscape Navigator and the Microsoft Internet Explorer(IE).In addition,there are probably more JavaScript books available than there are for the other browser languages,and some
23、 tools automatically create pages using JavaScript。However,if youre already fluent in Visual Basic or Tcl/Tk,youll be more productive using those scripting languages rather than learning a new one。(Youll have your hands full dealing with the Web issues already。)4.Java If a scripting language can sol
24、ve 80 percent of the clientside programming problems,what about the other 20 percentthe“really hard stuff?”The most popular solution today is Java.Not only is it a powerful programming language built to be secure,cross-platform,and international,but Java is being continually extended to provide lang
25、uage features and libraries that elegantly handle problems that are difficult in traditional programming languages,such as multithreading,database access,network programming,and distributed computing.Java allows client-side programming via the applet.An applet is a miniprogram that will run only und
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- JAVA 外文 文献 翻译
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内