29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Attribute Description<br />

import Allows the definition of classes and packages that will be available to<br />

scripting elements within the JSP. Classes within the following<br />

packages are available by default:<br />

► java.lang.*<br />

► javax.servlet.*<br />

► javax.servlet.jsp.*<br />

► javax.servlet.http.*<br />

session If true, the implicit object variable session will refer to a session object<br />

either already existing for the requesting user, or explicitly created for<br />

the page invocation. If false, then any reference to the session implicit<br />

object within the JSP page results in a translation-time error. The<br />

default is true.<br />

buffer Defines the buffering model for the JspWriter underlying the out implicit<br />

object variable. The default is an 8-kb buffer. It can be set to a value of<br />

xkb, or none.<br />

autoFlush If true, the buffered output is flushed when full. If false, an exception is<br />

thrown should the buffer fill up. A value of false, if the value of the buffer<br />

is set to none, will result in a translation-time error. The default is true.<br />

isThreadSafe If true, the JSP page implementation class will implement the<br />

javax.servlet.SingleThreadModel interface, and requests for the JSP<br />

will be handled sequentially in the order in which they were received.<br />

If false, then requests will be dispatched to the page on arrival and<br />

handled by individual threads. The default value is false.<br />

info Allows a String object to be defined, which can be returned by calling<br />

the getServletInfo() method of the JSP page implementation class.<br />

This will override any description provided at deployment time.<br />

isErrorPage Specifies if the page acts as an error page for other JSPs. If true, then<br />

the exception implicit object variable is available for use. If false, any<br />

reference to exception will result in a translation-time error. The default<br />

is false.<br />

errorPage Defines a URL to which any uncaught exceptions thrown during page<br />

execution can be directed. The URL must specify a JSP page that has<br />

isErrorPage set to true. The exception class is placed in the request<br />

object sent to the JSP acting as the error page where it is made<br />

available through the exception implicit object variable.<br />

contentType Defines the encoding of the JSP page and the response content.<br />

Chapter 8. Working with JSPs 249

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

Saved successfully!

Ooh no, something went wrong!