计算机JSPweb外文翻译外文文献英文文献

上传人:hs****ma 文档编号:554898747 上传时间:2023-10-01 格式:DOC 页数:12 大小:150KB
返回 下载 相关 举报
计算机JSPweb外文翻译外文文献英文文献_第1页
第1页 / 共12页
计算机JSPweb外文翻译外文文献英文文献_第2页
第2页 / 共12页
计算机JSPweb外文翻译外文文献英文文献_第3页
第3页 / 共12页
计算机JSPweb外文翻译外文文献英文文献_第4页
第4页 / 共12页
计算机JSPweb外文翻译外文文献英文文献_第5页
第5页 / 共12页
点击查看更多>>
资源描述

《计算机JSPweb外文翻译外文文献英文文献》由会员分享,可在线阅读,更多相关《计算机JSPweb外文翻译外文文献英文文献(12页珍藏版)》请在金锄头文库上搜索。

1、外文资料所译外文资料: 作者:Dan Malks 书名:Professional JSP 出版时间: 2000.7.26 所译章节: Chapter 1212.1 IntroductoryGood Web application design tries to separate business objects, presentation, and manipulation of the objects into distinct layers. One benefit of using JavaServer Pages technology is that it allows us to s

2、eparate the role of a Web designer more clearly from that of a software developer. While on a small-scale project, one individual may occupy both roles, on a larger project, they are likely to be separate and it is beneficial to separate their workflows as much as possible. Designing the architectur

3、e for your Web application is crucial to this separation.12.2 JSP architectureWe will examine a variety of ways to architect a system with JavaServer Pages, servlets, and JavaBeans. We will see a series of different architectures, each a development of the one before. The diagram below shows this pr

4、ocess in outline; the individual parts of the diagram will be explained in turn later in this article.JSP architecture:When Sun introduced Java Server Pages, some were quick to claim that servlets had been replaced as the preferred request handling mechanism in Web-enabled enterprise architectures.

5、Although JSP is a key component of the Java 2 Platform Enterprise Edition (J2EE) specification, serving as the preferred request handler and response mechanism, we must investigate further to understand its relationship with servlets. Other sections of Professional JSP explain the implementation det

6、ails of JSP source translation and compilation into a servlets. Understanding that JSP is built on top of the servlet API, and uses servlet semantics, raises some interesting questions. Should we no longer develop stand-alone servlets in our Web-enabled systems? Is there some way to combine servlets

7、 and JSPs? If so, where do we place our Java code? Are there any other components involved in the request processing, such as JavaBeans? If so, where do they fit into the architecture and what type of role do they fulfill? It is important to understand that, although JSP technology will be a powerfu

8、l successor to basic servlets, they have an evolutionary relationship and can be used in a cooperative and complementary manner. Given this premise, we will investigate how these two technologies, each a Java Standard Extension, can be used co-operatively along with other components, such as JavaBea

9、ns, to create Java-based Web-enabled systems. We will examine architectural issues as they relate to JSP and servlets and discuss some effective designs while looking at the tradeoffs of each. Before jumping directly into a discussion of specific architectures, though, we will briefly examine the ne

10、ed to develop a variety of architectures.12.3 Code factoring and role separationOne of the main reasons why the JavaServer Pages technology has evolved into what it is today (and its still evolving) is the overwhelming technical need to simplify application design by separating dynamic content from

11、static template display data. The foundation for JSP was laid down with the initial development of the Java Web Server from Sun, which used page compilation and focused on embedding HTML inside Java code. As applications came to be based more on business objects and n-tier architectures, the focus c

12、hanged to separating HTML from Java code, while still maintaining the integrity and flexibility the technology provided. In Chapter 5, JSP Sessions, in Professional JSP, we saw how beans and objects can be bound to different contexts just by defining a certain scope. Good application design builds o

13、n this idea and tries to separate the objects, the presentation, and the manipulation of the objects into distinct, distinguishable layers. Another benefit of using JSP is that it allows us to more cleanly separate the roles of a Web production/HTML designer individual from a software developer. Rem

14、ember that a common development scenario with servlets was to embed the HTML presentation markup within the Java code of the servlet itself, which can be troublesome. In our discussion, we will consider the servlet solely as a container for Java code, while our entire HTML presentation template is e

15、ncapsulated within a JSP source page. The question then arises as to how much Java code should remain embedded within our JSP source pages, and if it is taken out of the JSP source page, where should it reside? Lets investigate this further. On any Web-based project, multiple roles and responsibilit

16、ies will exist. For example, an individual who designs HTML pages fulfills a Web production role while someone who writes software in the Java programming language fulfills a software development role. On small-scale projects these roles might be filled by the same individual, or two individuals working closely together. On a larger project, they will likely be filled by multiple individuals, who might not have overlapping skill sets, and are les

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 工作计划

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