沈阳理工大学学士学位论文
致 谢
非常感谢穆欣侃老师在我大学的最后学习阶段----毕业设计阶段给我的指导,从最初的定题,到毕业设计制作完成,他给了我耐心的指导和无私的帮助。他严肃的科学态度,严谨的治学精神,精艺求精的工作作风,深深地感染和激励着我。穆欣侃老师不仅在学业上给我以精心指导,同时还在思想上给我无微不至的关怀,在此谨向穆欣侃老师致以诚挚的谢意和崇高的敬意。
通过这一阶段的努力,我的毕业设计终于完成了,这意味着大学生活即将结束。在大学阶段,我在学习上和思想上都受益匪浅,这除了自身的努力外,与各位老师、同学和朋友的关心、支持和鼓励是分不开的。
33
沈阳理工大学学士学位论文
参考文献
[1]翁卫兵等.JSP网络编程技术[M] .新时代出版社,2007 [2]阎宏.《JAVA与模式》.电子工业出版社,2002
[3]Bruce Eckel.Thinking in java [M] .机械工业出版社,2007 [4]陈波.JSP数据库编程入门[M] .吉林电子出版社,2004
[5]Donny.JSP And web development programming of actual combat [M] .科学出版社,2001 [6]Steven Holzner.Java.MATT TELLES [M] .机械工业出版社,2002 [7]Bruce Eckel.《Java编程思想》.机械工业出版社,2002 [8]唐红梅.基于JSP动态网站的建立[J] .微机发展,2002 [9]刘小华.《JSP应用开发详解》.电子工业出版社,2007
[10]陈华军.《J2EE构建企业级应用解决方案》.人民邮电出版社,2002 [11]汪孝宜.JSP数据库开发实例精粹[M] .电子工业出版社,2005 [12]张义.《JAVA 5程序员开发手册》. 科学出版社,2007
[13]傅雯彬,蔡承书.《JAVASCRIPT动态网页设计实务》. 中国铁道出版社,2001 [14]吴其庆.JSP网站设计经典教程[M] .北京.冶金工业出版社,2001 [15] (美)D. 阿卢尔.《J2EE核心模式》.机械工业出版社,2002 [16] (美)PAUL R.ALLEN .《J2EE技术内幕》.机械工业出版社,2008 [17]张海潘.软件工程导论.北京大学出版社,2005
34
沈阳理工大学学士学位论文
附录A 英文附录
A.1 Java and the Internet
The idea here is simple: users will download Java bytecodes from the Internet and run them on their own machines. Java programs that work on web pages are called applets. To use an applet, you need a Java-enabled web browser, which will execute the bytecodes for you. Because Sun is licensing the Java source code and insisting that there be no changes in the language and basic library structure, a Java applet should run on any browser that is advertised as Java-enabled. Unfortunately, reality has been different. Various versions of Netscape and Internet Explorer run different versions of Java, some of which are seriously outdated. This sorry situation made it increasingly difficult to develop applets that take advantage of the most current Java version. To remedy this problem, Sun has developed the Java Plug-in, a tool that makes the newest Java runtime environment available to both Netscape and Internet Explorer
When the user downloads an applet, it works much like embedding an image in a web page. The applet becomes a part of the page, and the text flows around the space used for the applet. The point is, the image is alive. It reacts to user commands, changes its appearance, and sends data between the computer presenting the applet and the computer serving it.
a good example of a dynamic web page—an applet to view molecules—that carries out sophisticated calculations. By using the mouse, you can rotate and zoom each molecule to better understand its structure. This kind of direct manipulation is not achievable with static web pages, but applets make it possible.
A.2 Common Misconceptions About Java
This is a list of some common misconceptions about Java, along with commentary. (1)Java is an extension of HTML.
Java is a programming language; HTML is a way to describe the structure of a web page. They have nothing in common except that there are HTML extensions for placing Java applets on a web page.
35
沈阳理工大学学士学位论文
(2)I use XML, so I don't need Java.
Java is a programming language; XML is a way to describe data. You can process XML data with any programming language, but the Java API contains excellent support for XML processing. In addition, many important third-party XML tools are implemented in Java. See Volume 2 for more information.
(3)Java is an easy programming language to learn.
No programming language as powerful as Java is easy. You always have to distinguish between how easy it is to write toy programs and how hard it is to do serious work. Also, consider that only four chapters in this book discuss the Java language. The remaining chapters of both volumes show how to put the language to work, using the Java libraries. The Java libraries contain thousands of classes and interfaces, and tens of thousands of functions. Luckily, you do not need to know every one of them, but you do need to know surprisingly many to use Java for anything realistic.
(4)Java will become a universal programming language for all platforms.
This is possible, in theory, and it is certainly the case that every vendor but Microsoft seems to want this to happen. However, many applications, already working perfectly well on desktops, would not work well on other devices or inside a browser. Also, these applications have been written to take advantage of the speed of the processor and the native user interface library and have been ported to all the important platforms anyway. Among these kinds of applications are word processors, photo editors, and web browsers. They are typically written in C or C++, and we see no benefit to the end user in rewriting them in Java.
(5)Java is just another programming language.
Java is a nice programming language; most programmers prefer it over C, C++, or C#. But there have been hundreds of nice programming languages that never gained widespread popularity, whereas languages with obvious flaws, such as C++ and Visual Basic, have been wildly successful.
Why? The success of a programming language is determined far more by the utility of the support system surrounding it than by the elegance of its syntax. Are there useful, convenient, and standard libraries for the features that you need to implement? Are there tool vendors that build great programming and debugging environments? Does the language and
36