Defines a generic, protocol-independent
servlet.
Returns the object bound with the specified name in this session, or
null
if no object is bound under the name.
return the object associated with the name in the page scope or null
Returns the servlet container attribute with the given name,
or null
if there is no attribute by that name.
Returns the value of the named attribute as an Object
,
or null
if no attribute of the given name exists.
return the object associated with the name in the specifed scope or null
Returns an Enumeration
of String
objects
containing the names of all the objects bound to this session.
Returns an Enumeration
containing the
attribute names available
within this servlet context.
Returns an Enumeration
containing the
names of the attributes available to this request.
Enumerates the attributes
A null return means no information on attributes
Returns the name of the authentication scheme used to protect
the servlet, for example, "BASIC" or "SSL," or null
if the servlet was not protected.
Returns the actual buffer size used for the response.
Returns the name of the character encoding used in the body of this
request.
Returns the name of the charset used for
the MIME body sent in this response.
Returns the comment describing the purpose of this cookie, or
null
if the cookie has no comment.
Returns the length, in bytes, of the request body
and made available by the input stream, or -1 if the
length is not known.
Returns the MIME type of the body of the request, or
null
if the type is not known.
Returns a ServletContext
object that
corresponds to a specified URL on the server.
Returns the portion of the request URI that indicates the context
of the request.
Returns an array containing all of the Cookie
objects the client sent with this request.
Returns the time when this session was created, measured
in milliseconds since midnight January 1, 1970 GMT.
Returns the value of the specified request header
as a long
value that represents a
Date
object.
Returns the domain name set for this cookie.
Get the enclosing JspWriter
called to get implementation-specific information on the current JSP engine
Returns the value of the specified request header
as a String
.
Returns an enumeration of all the header names
this request contains.
Returns all the values of the specified request header
as an Enumeration
of String
objects.
Returns a string containing the unique identifier assigned
to this session.
The value of the id attribute of this tag; or null.
Convenience method that goes through an array of TagAttributeInfo
objects and looks for "id".
Returns a String
containing the value of the named
initialization parameter, or null
if the parameter does
not exist.
Returns a String
containing the value of the
named initialization parameter, or null
if
the parameter does not exist.
Returns a String
containing the value of the named
context-wide initialization parameter, or null
if the
parameter does not exist.
Returns the names of the servlet's initialization parameters
as an Enumeration
of String
objects,
or an empty Enumeration
if the servlet has no
initialization parameters.
Returns the names of the servlet's initialization parameters
as an Enumeration
of String
objects,
or an empty Enumeration
if the servlet has
no initialization parameters.
Returns the names of the context's initialization parameters as an
Enumeration
of String
objects, or an
empty Enumeration
if the context has no initialization
parameters.
Returns the value of the specified request header
as an int
.
Returns the last time the client sent a request associated with
this session, as the number of milliseconds since midnight
January 1, 1970 GMT.
Returns the time the HttpServletRequest
object was last modified,
in milliseconds since midnight January 1, 1970 GMT.
Returns the preferred Locale
that the client will
accept content in, based on the Accept-Language header.
Returns the locale assigned to the response.
Returns an Enumeration
of Locale
objects
indicating, in decreasing order starting with the preferred locale, the
locales that are acceptable to the client based on the Accept-Language
header.
Returns the major version of the Java Servlet API that this
servlet container supports.
Returns the maximum age of the cookie, specified in seconds,
By default, -1
indicating the cookie will persist
until browser shutdown.
Returns the maximum time interval, in seconds, that
the servlet container will keep this session open between
client accesses.
Returns the name of the HTTP method with which this
request was made, for example, GET, POST, or PUT.
Returns the MIME type of the specified file, or null
if
the MIME type is not known.
Returns the minor version of the Servlet API that this
servlet container supports.
Returns the name of the cookie.
Returns the name with which the object is bound to or
unbound from the session.
obtains an instance of an implementation dependent
javax.servlet.jsp.PageContext abstract class for the calling Servlet
and currently pending request and response.
Returns the value of a request parameter as a String
,
or null
if the parameter does not exist.
Returns an Enumeration
of String
objects containing the names of the parameters contained
in this request.
Returns an array of String
objects containing
all of the values the given request parameter has, or
null
if the parameter does not exist.
The Tag instance enclosing this tag instance.
Returns the path on the server
to which the browser returns this cookie.
Returns any extra path information associated with
the URL the client sent when it made this request.
Returns any extra path information after the servlet name
but before the query string, and translates it to a real
path.
Returns the name and version of the protocol the request uses
in the form protocol/majorVersion.minorVersion, for
example, HTTP/1.1.
Returns the query string that is contained in the request
URL after the path.
Return the value of this BodyContent as a Reader.
Retrieves the body of the request as character data using
a BufferedReader
.
Returns a String
containing the real path
for a given virtual path.
Returns the Internet Protocol (IP) address of the client
that sent the request.
Returns the fully qualified name of the client that sent the
request, or the IP address of the client if the name cannot be
determined.
Returns the login of the user making this request, if the
user has been authenticated, or null
if the user
has not been authenticated.
Returns a
RequestDispatcher
object that acts
as a wrapper for the resource located at the given path.
Returns a
RequestDispatcher
object that acts as a wrapper for
the resource located at the given path.
Returns the session ID specified by the client.
Returns the part of this request's URL from the protocol
name up to the query string in the first line of the HTTP request.
Reconstructs the URL the client used to make the request,
using information in the HttpServletRequest
object.
Returns a URL to the resource that is mapped to a specified
path.
Returns the resource located at the named path as
an InputStream
object.
Returns the exception that caused this servlet exception.
Returns the name of the scheme used to make this request,
for example,
http
, https
, or ftp
.
Returns true
if the browser is sending cookies
only over a secure protocol, or false
if the
browser can send cookies using any protocol.
Returns the name and version of the servlet container on which
the servlet is running.
Returns the host name of the server that received the request.
Returns the port number on which this request was received.
Returns a
ServletConfig
object, which contains
initialization and startup parameters for this servlet.
Returns a reference to the
ServletContext
in which this servlet
is running.
Returns a reference to the
ServletContext
in which the servlet
is executing.
Returns information about the servlet, such as
author, version, and copyright.
Returns information about the servlet, such
as author, version, and copyright.
Returns the name of this servlet instance.
Returns the name of this servlet instance.
Returns the part of this request's URL that calls
the servlet.
Returns the current session associated with this request,
or if the request does not have a session, creates one.
Returns the session to or from which the object is
bound or unbound.
Returns the current HttpSession
associated with this request or, if if there is no
current session and create
is true, returns
a new session.
Specification version numbers use a "Dewey Decimal"
syntax that consists of positive decimal integers
separated by periods ".", for example, "2.0" or "1.2.3.4.5.6.7".
Return the value of the BodyContent as a String.
Get the TagInfo for a given tag name
Name of the class that provides the (run-time handler for this tag
The instance (if any) for extra tag information
Get the TagInfo for this class
Returns the number of seconds the servlet expects to
be temporarily unavailable.
Returns a java.security.Principal
object containing
the name of the current authenticated user.
Returns the value of the cookie.
information on scripting variables defined by this tag
Information on the object created by this tag at runtime.
Returns the version of the protocol this cookie complies
with.
Returns a PrintWriter
object that
can send character text to the client.
name used to store the Servlet in this PageContext's nametables
page scope: (this is the default) the named reference remains available
in this PageContext until the return from the current Servlet.service()
invocation.
A PageContext instance provides access to all the namespaces associated with
a JSP page, provides access to several page attributes, as well as a layer above the
implementation details.
name used to store this PageContext in it's own name tables
Parses data from an HTML form that the client sends to
the server using the HTTP POST method and the
application/x-www-form-urlencoded MIME type.
Parses a query string passed from the client to the
server and builds a HashTable
object
with key-value pairs.
Return the previous JspWriter "out" saved by the matching
pushBody(), and update the value of the "out" attribute in
the page scope attribute namespace of the PageConxtext
Writes a boolean
value to the client,
with no carriage return-line feed (CRLF)
character at the end.
Writes a character to the client,
with no carriage return-line feed (CRLF)
at the end.
Print a double-precision floating-point number.
Writes a double
value to the client,
with no carriage return-line feed (CRLF) at the end.
Print a floating-point number.
Writes a float
value to the client,
with no carriage return-line feed (CRLF) at the end.
Writes an int to the client,
with no carriage return-line feed (CRLF)
at the end.
Writes a long
value to the client,
with no carriage return-line feed (CRLF) at the end.
Print an array of characters.
Writes a String
to the client,
without a carriage return-line feed (CRLF)
character at the end.
Terminate the current line by writing the line separator string.
Writes a carriage return-line feed (CRLF)
to the client.
Print a boolean value and then terminate the line.
Writes a boolean
value to the client,
followed by a
carriage return-line feed (CRLF).
Print a character and then terminate the line.
Writes a character to the client, followed by a carriage
return-line feed (CRLF).
Print a double-precision floating-point number and then terminate the
line.
Writes a double
value to the client,
followed by a carriage return-line feed (CRLF).
Print a floating-point number and then terminate the line.
Writes a float
value to the client,
followed by a carriage return-line feed (CRLF).
Print an integer and then terminate the line.
Writes an int to the client, followed by a
carriage return-line feed (CRLF) character.
Print a long integer and then terminate the line.
Writes a long
value to the client, followed by a
carriage return-line feed (CRLF).
Print an Object and then terminate the line.
Print a String and then terminate the line.
Writes a String
to the client,
followed by a carriage return-line feed (CRLF).
Print an array of characters and then terminate the line.
Return a new BodyContent object, save the current "out" JspWriter,
and update the value of the "out" attribute in the page scope
attribute namespace of the PageContext
Status code (202) indicating that a request was accepted for
processing, but was not completed.
Status code (502) indicating that the HTTP server received an
invalid response from a server it consulted when acting as a
proxy or gateway.
Status code (400) indicating the request sent by the client was
syntactically incorrect.
Status code (409) indicating that the request could not be
completed due to a conflict with the current state of the
resource.
Status code (100) indicating the client can continue.
Status code (201) indicating the request succeeded and created
a new resource on the server.
Status code (417) indicating that the server could not meet the
expectation given in the Expect request header.
Status code (403) indicating the server understood the request
but refused to fulfill it.
Status code (504) indicating that the server did not receive
a timely response from the upstream server while acting as
a gateway or proxy.
Status code (410) indicating that the resource is no longer
available at the server and no forwarding address is known.
Status code (505) indicating that the server does not support
or refuses to support the HTTP protocol version that was used
in the request message.
Status code (500) indicating an error inside the HTTP server
which prevented it from fulfilling the request.
Status code (411) indicating that the request cannot be handled
without a defined Content-Length
.
Status code (405) indicating that the method specified in the
Request-Line
is not allowed for the resource
identified by the Request-URI
.
Status code (301) indicating that the resource has permanently
moved to a new location, and that future references should use a
new URI with their requests.
Status code (302) indicating that the resource has temporarily
moved to another location, but that future references should
still use the original URI to access the resource.
Status code (300) indicating that the requested resource
corresponds to any one of a set of representations, each with
its own specific location.
Status code (204) indicating that the request succeeded but that
there was no new information to return.
Status code (203) indicating that the meta information presented
by the client did not originate from the server.
Status code (406) indicating that the resource identified by the
request is only capable of generating response entities which have
content characteristics not acceptable according to the accept
headerssent in the request.
Status code (404) indicating that the requested resource is not
available.
Status code (501) indicating the HTTP server does not support
the functionality needed to fulfill the request.
Status code (304) indicating that a conditional GET operation
found that the resource was available and not modified.
Status code (200) indicating the request succeeded normally.
Status code (206) indicating that the server has fulfilled
the partial GET request for the resource.
Status code (402) reserved for future use.
Status code (412) indicating that the precondition given in one
or more of the request-header fields evaluated to false when it
was tested on the server.
Status code (407) indicating that the client MUST first
authenticate itself with the proxy.
Status code (413) indicating that the server is refusing to process
the request because the request entity is larger than the server is
willing or able to process.
Status code (408) indicating that the client did not produce a
requestwithin the time that the server was prepared to wait.
Status code (414) indicating that the server is refusing to service
the request because the Request-URI
is longer
than the server is willing to interpret.
Status code (416) indicating that the server cannot serve the
requested byte range.
Status code (205) indicating that the agent SHOULD reset
the document view which caused the request to be sent.
Status code (303) indicating that the response to the request
can be found under a different URI.
Status code (503) indicating that the HTTP server is
temporarily overloaded, and unable to handle the request.
Status code (101) indicating the server is switching protocols
according to Upgrade header.
Status code (307) indicating that the requested resource
resides temporarily under a different URI.
Status code (401) indicating that the request requires HTTP
authentication.
Status code (415) indicating that the server is refusing to service
the request because the entity of the request is in a format not
supported by the requested resource for the requested method.
Status code (305) indicating that the requested resource
MUST be accessed through the proxy given by the
Location
field.
Sends an error response to the client using the specified
status.
Sends an error response to the client using the specified status
code and descriptive message.
Sends a temporary redirect response to the client using the
specified redirect location URL.
Receives standard HTTP requests from the public
service
method and dispatches
them to the do
XXX methods defined in
this class.
Called by the servlet container to allow the servlet to respond to
a request.
Dispatches client requests to the protected
service
method.
Called by the servlet container to allow the servlet to respond to
a request.
Defines methods that all servlets must implement.
A servlet configuration object used by a servlet container
used to pass information to a servlet during initialization.
Defines a set of methods that a servlet uses to communicate with its
servlet container, for example, to get the MIME type of a file, dispatch
requests, or write to a log file.
Defines a general exception a servlet can throw when it
encounters difficulty.
Constructs a new servlet exception.
Constructs a new servlet exception with the
specified message.
Constructs a new servlet exception when the servlet
needs to throw an exception and include a message
about the "root cause" exception that interfered with its
normal operation, including a description message.
Constructs a new servlet exception when the servlet
needs to throw an exception and include a message
about the "root cause" exception that interfered with its
normal operation.
Provides an input stream for reading binary data from a client
request, including an efficient readLine
method
for reading data one line at a time.
Does nothing, because this is an abstract class.
Provides an output stream for sending binary data to the
client.
Does nothing, because this is an abstract class.
Defines an object to provide client request information to a servlet.
Defines an object to assist a servlet in sending a response to the client.
name used to store HttpSession in PageContext name table
session scope (only valid if this page participates in a session):
the named reference remains available from the HttpSession (if any)
associated with the Servlet until the HttpSession is invalidated.
Binds an object to this session, using the name specified.
register the name and object specified with page scope semantics
Binds an object to a given attribute name in this servlet context.
Stores an attribute in this request.
Set the value of this attribute to be
register the name and object specified with appropriate scope semantics
Setter method for the bodyContent property.
Prepare for evaluation of the body
It will be invoked at most once per action invocation.
Sets the preferred buffer size for the body of the response.
Specifies a comment that describes a cookie's purpose.
Sets the length of the content body in the response
In HTTP servlets, this method sets the HTTP Content-Length header.
Sets the content type of the response being sent to
the client.
Sets a response header with the given name and
date-value.
set the default factory for this implementation.
Specifies the domain within which this cookie should be presented.
Sets a response header with the given name and value.
Sets a response header with the given name and
integer value.
Sets the locale of the response, setting the headers (including the
Content-Type's charset) as appropriate.
Sets the maximum age of the cookie in seconds.
Specifies the time, in seconds, between client requests before the
servlet container will invalidate this session.
Set the current page context.
Set the current nesting Tag of this Tag.
Set the nesting tag of this tag.
Specifies a path for the cookie
to which the client should return the cookie.
Indicates to the browser whether the cookie should only be sent
using a secure protocol, such as HTTPS or SSL.
Sets the status code for this response.
Set the TagInfo for this class
Assigns a new value to a cookie after the cookie is created.
Sets the version of the cookie protocol this cookie complies
with.
Ensures that servlets handle
only one request at a time.
SKIP_BODY - static field in class javax.servlet.jsp.tagext.
Tag Skip body evaluation.
SKIP_PAGE - static field in class javax.servlet.jsp.tagext.
Tag Skip the rest of the page.