早教吧 育儿知识 作业答案 考试题库 百科 知识分享

计算机英语翻译(续)郁闷,竟然还有一段没贴上来,求好心人翻译完啊,谢谢啊!JavaServerPagescombineHTMLorXMLwithnuggetsofJavacodetoproducedynamicwebpages.EachpageisautomaticallycompiledtoaservletbytheJ

题目详情
计算机英语翻译(续)
郁闷,竟然还有一段没贴上来,求好心人翻译完啊,谢谢啊!
Java Server Pages combine HTML or XML with nuggets of Java code to produce dynamic web pages. Each page is automatically compiled to a servlet by the JSP engine the first time it is requested, and then executed. JSP provides a variety of ways to talk to Java classes, servlets, applets and the web server.
A Java Server Page file consists of HTML tags, content, JSP directives, JSP declarations, JSP scriptlets and action tags. Initially, the JSP engine parses the JSP file which then generates a new servlet with the desired content. If the file changes, then a new servlet is generated; otherwise, the compiled version is used.

The word Java Beans conjures up images of Coffee Beans or even Beanbags, but the Java Beans that we are talking about are related to Java.
Java beans play a large role in JSP documents. A Java Bean is a Java component that works on any Java Virtual Machine.
Packages
If you had a class called Applet and if another user also called his class Applet, then whose Applet gets called, yours or his? To prevent a name clash, sun invented the concept of a package. They said that all classes created by Sun would start with java. Unfortunately this does nothing for a grouping. We would like all classes that deal with GUI issues to be grouped together. Thus we have one more level i.e. all GUI classes are part of java.awt and applet classes are a part of java.applet. Hence the full name of the class Applet is java.applet.Applet and java.applet is the package name which can be part of the import statement.
we have shown you how Java Server Pages receive from and send data to Java Beans. At the same time we also showed you how to create your own package. You are now also aware that setting the scope to the four different options will generate different results.
▼优质解答
答案和解析
JSP页面文件将java源代码段穿插到HTML或XML代码中来产生动态网页.
当第一次收到请求时,页面将由JSP引擎自动编译成servlet,然后执行
JSP提供了与JAVA类,SERVLETS,applets 和网络服务器交流的途径
一个 JSP页面文件由HTML标记,网页内容,JSP指令,JSP声明,JSP脚本和活动标签组成
起初,JSP引擎解析JSP页面文件,然后产生含有需要内容的新的servlet
如果文件发生改变,就会产生新的servlet
否则,将使用已经编译好的那个版本的servlet
JAva Bean 这个词使人联想到COFFEE Beans甚至是 BEANbags
然而,我们所说的java beans 是与java相关的,Java beans在JSP文档中起很大的作用
一个java bean是一个在java虚拟机上运行的java 组件

如果你有一个类叫做APPLet,而另外一个人也把他的类叫做APPLET,那么,你们两个中,谁的Applet将会被调用?
为了防止命名冲突,SUN公司引入了“包”的概念.他们说sun创建的所有的类都从java开始
不幸的是,这为分组毫无用处
我们希望处理GUI事务的所有类都归到一起.
所以,另需要一个层次,即所有的GUI类是java.awt的一部分,并且applet类是java.applet的一部分
如此,Applet类的全名就是:java.applet.Applet,而java.applet是一个一个包名,这个包名,是导入语句的一部分
我们已告诉你JSP如何从Java Beans接收和将数据发送到Java Beans,同时我们也阐述了如何创建你自己的包
你现在应该也明白将作用域设置为四个不同的选项将产生不同的结果