【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)

上传人:从****越 文档编号:132319070 上传时间:2020-05-14 格式:DOCX 页数:30 大小:606.80KB
返回 下载 相关 举报
【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)_第1页
第1页 / 共30页
【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)_第2页
第2页 / 共30页
【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)_第3页
第3页 / 共30页
【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)_第4页
第4页 / 共30页
【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)_第5页
第5页 / 共30页
点击查看更多>>
资源描述

《【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)》由会员分享,可在线阅读,更多相关《【精品文档】533关于计算机专业Java服务器页码动态网页开发技术的毕业设计论文英文英语外文文献翻译成品资料:JSP和JavaBeans(中英文双语对照)(30页珍藏版)》请在金锄头文库上搜索。

1、本文是中英对照毕业设计论文外文文献翻译,下载后无需调整复杂的格式直接可用!一辈子也就一次的事!文献引用作者出处信息: Vivek Chopra Beginning JavaServer Pages,2020 (如觉得年份太老,可改为近2年,毕竟很多毕业生都这样做)英文3235单词,20351字符(字符就是印刷符),中文5109汉字。(如果字数多了,可自行删减,大多数学校都是要求选取外文的一部分内容进行翻译的。)JSP and JavaBeansJSP is a presentation technology. Unlike a programming language such as Java

2、, JSP does not have any built-in capability to access features offered by the underlying operating system or environ-ment. JSPs capabilities are focused mainly around the generation of dynamic Web content.JavaBeans are software components written in the Java programming language. JSP has built-in ca

3、pabilities to work with JavaBeans. These capabilities are provided by the JSP standard actions and EL expressions. Because of this, JavaBeans have become the main mechanism for passing data and custom behavior between the JSP logic and the rest of the system in large Web applications.In this chapter

4、, this intimate relationship between JSP and JavaBeans is explored fully. The key topics covered in the chapter include the following: Anatomy of a JavaBean Packaging JavaBeans JavaBean usage within JSPs Accessing JavaBeans with standard actions Accessing JavaBeans with EL Accessing JavaBeans from s

5、criptlets Difference between a JavaBeans and an EJBTwo hands-on examples will clarify many of the concepts introduced. JavaBeans have already been used in the examples of previous chapters; most of the integration and application tech-niques are reviewed in this chapter. Additional topics that are c

6、overed in the chapter include the following: The use of a front-end JSP page (often called a front controller) to handle common tasks such as data validation. A front controller is a common design pattern for Web presentation layers. These and other common design patterns are discussed in Chapter 26

7、, “Best Practices and Tools.” The typical flow of data, in a JSP Web application, using JavaBeans. The JavaBean used to collectand pass data across layers in your Web application is sometimes referred to as a transfer object or a data transfer object. This is another design pattern explained in more

8、 detail in Chapter 26.By the end of this chapter, you will be familiar with JavaBeans as a software component, and their usage and application within JSPs. This will prepare you to work with the various JSP frameworks, where JavaBeans are used extensively to transport data between the business logic

9、 engine and the JSP-based presentation layer.Anatomy of a JavaBeanA JavaBean is a specially constructed class written in the Java programming language. All JavaBeans are coded according to the JavaBeans API 1.0 Specifications for SUN (with a minor update to 1.01). JavaBeans are reusable software com

10、ponents that can be wired together to create component-based applications. JavaBeans were originally designed for rapid application development environments. In these environments, visual JavaBeans can be dragged and dropped in the creation of user interfaces as well as application logic. All modern

11、-day IDEs support the building of componentized applications using JavaBeans. The Swing API components are a good example of reusable JavaBean components.Other than visual application design, JavaBeans are finding their way into many other uses, including the building of Web applications using JSP.

12、In fact, even the earliest version of JSP had built-in standard actions that take advantage of JavaBeans. The unique characteristics that distinguish a JavaBean from other Java classes include the following: It must have a default constructor (i.e., no argument). It may have a number of properties,

13、the value of which can be read or written to. It may have a number of methods that can be invoked. Some JavaBeans are visual (i.e., AWT or Swing-based) and can be placed into an IDE during the design of a user interface. It is designed to be a self-contained component, used in assembling a component

14、s-based application.Of the aforementioned unique characteristics of JavaBeans, the first three (constructor, properties, and methods) are the most important to JSP developers. The next two characteristics (events and visual design interface) are gaining relevance as sophisticated frameworks based on

15、 JavaBeans, such as JavaServer Faces (JSF), become available. JSF is covered in Chapter 21, “JavaServer Faces.” The final characteristic is also important architecturally a JavaBean adds incremental and reusable functional-ity to applications built using JSP, and thus enable the application to be bu

16、ilt based on the assembly of software components.The validation error information JavaBeanThe BidError JavaBean is created to carry error information between the front controllers form valida-tion logic and the presentation JSPs. You can find the code at /webapps/ch09/example1/WEB-INF/classes/com/wrox/begjsp/ch09/BidError.java.This BidE

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 期刊/会议论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号