29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The syntax for expression tags is:<br />

<br />

Or in XML syntax:<br />

expression <br />

Use of implicit object variables in scripting elements<br />

All of the available implicit object variables, as described in Table 8-1 on<br />

page 246, are available for use from within scriptlets and expressions. For<br />

example, objects placed within the HttpServletRequest object or within the<br />

HttpSession object can be retrieved and used within scriptlets and expressions<br />

via the request and session variables, respectively.<br />

Actions<br />

The third type of JSP element is the set of action tags. We will only briefly<br />

introduce the standard action tags defined within the JSP 1.2 specification here.<br />

The standard action tags are listed in Table 8-4.<br />

Table 8-4 Standard action tags<br />

Action tag Description<br />

Allows access to a Java object, usually a<br />

JavaBean, retrieved from a given scope or<br />

newly instantiated through a named<br />

identifier.<br />

Sets the value of a bean property.<br />

Outputs a Bean property, converted to a<br />

String.<br />

Allows inclusion of static and dynamic<br />

content within the current JSP page.<br />

Forwards the responsibility for request<br />

handling to another static or dynamic<br />

resource.<br />

Enables the generation of<br />

browser-specific HTML to enable use of<br />

the Java plug-in with applets or other Java<br />

components.<br />

Used in connection with the include,<br />

forward, and plug-in action tags to supply<br />

parameters in key/value pairs.<br />

254 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!