![]() |
![]() |
|
This programming guide provides an introduction and reference for the basic syntax of JavaServer Pages (JSP), and information about how to use JSP with WebLogic Server. It is not intended as a comprehensive guide to programming with JSP.
This section includes the following topics:
JavaServer Pages (JSP) is a Sun Microsystems specification for combining Java with HTML to provide dynamic content for Web pages. When you are creating dynamic content, JSPs are more convenient to write than HTTP servlets because they allow you to embed Java code directly into your HTML pages, in contrast with HTTP servlets, in which you embed HTML inside Java code. JSP is part of the Java Two Enterprise Edition (J2EE).
JSP allows you to separate the dynamic content of a Web page from its presentation. It caters to two different types of developers: HTML developers, who are responsible for the graphical design of the page, and Java developers, who handle the development of software to create the dynamic content.
Because JSP is part of the J2EE standard, JSPs may be deployed on a variety of platforms, including WebLogic Server. In addition, third-party vendors and application developers can provide JavaBean components and define custom JSP tags that can be referenced from a JSP page to provide dynamic content.
WebLogic Implementation of JSP
BEA WebLogic JSP supports the JSP 1.1 specification from Sun Microsystems. JSP 1.1 includes support for defining custom JSP tag extensions. (See Programming JSP Extensions)
WebLogic Server also supports the Servlet 2.2 specification from Sun Microsystems.
WebLogic Server handles JSP requests in the following sequence:
It is also possible to invoke the JSP compiler directly without making a request from a browser. For details see Using the WebLogic JSP Compiler. Because the JSP compiler creates a Java servlet as its first step, you can look at the Java files it produces, or even register the generated JspPage servlet class as an HTTP servlet.
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|