|
Anatomy of a JSP page
In this article we will study the anatomy of a JSP page and how you can use each of these elements for your own use.
|
|
Forwarding and Including Response from other Servlets.
In this article we will learn how to pass control from one Servlet to another using RequestDispatcher.forward() method and how to include response from another Servlet within the caller Servlet using RequestDispatcher.include() method.
|
|
JSP Actions
JSP actions use constructs in XML syntax to control the behavior of the servlet engine. You can dynamically insert a file, reuse JavaBeans components, forward the user to another page, or generate HTML for the Java plugin.
|
|
JAVASERVER PAGESTM
SYNTAX REFERENCE
|
|
JSP Syntax Basics
Moving beyond installation, we'll now go into the JSP syntax. For a cheat sheet, you can download a syntax card. And if you're not familiar with Java programming, you may want to visit Sun's tutorial; however, Web builders shouldn't have to do too much Java development. Other than a few method calls, the Java code in your JSP Web pages should be minimal.
|
|
JSP Technology Syntax
When Sun introduced Java ServerPages, some were quick to claim that Servlets had been replaced as the preferred request handling mechanism in web-enabled enterprise architectures. 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
|
|
JAVASERVER PAGESTM
SYNTAX CARD
The Syntax Card is available for download in both PDF and Postscript formats.
|
|
Comments and Character Quoting Conventions
There are a small number of special constructs you can use in various cases to insert comments or characters that would otherwise be treated specially.
|
|
JSP Syntax Summary
|
|
JSP Actions
|