<html>
<head>
<title>response</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">response</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Variable name:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p><span class="LITERAL">response</span></p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Interface name:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p><span class="LITERAL">javax.servlet.http.HttpServletResponse</span></p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Extends:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p><span class="LITERAL">javax.servlet.ServletResponse</span></p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Implemented by:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>Internal container-dependent class</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">JSP page type:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>Available in both regular JSP pages and error pages</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Description</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>The <span class="LITERAL">response</span> variable is assigned a reference to
an internal container-dependent class that implements a
protocol-dependent interface that extends the
<span class="LITERAL">javax.servlet.ServletResponse</span> interface. Since
HTTP is the only protocol supported by JSP 1.1, the class always
implements the
<span class="LITERAL">javax.servlet.http.HttpServletResponse</span> interface.
The method descriptions in this section include the methods from both
interfaces.
</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Constants</td>
</tr>
<tr>
<td colspan="2" class="description">

<span class="PROGRAMLISTING"><pre>public static final int SC_CONTINUE = 100;
public static final int SC_SWITCHING_PROTOCOLS = 101;
public static final int SC_OK = 200;
public static final int SC_CREATED = 201;
public static final int SC_ACCEPTED = 202;
public static final int SC_NON_AUTHORITATIVE_INFORMATION = 203;
public static final int SC_NO_CONTENT = 204;
public static final int SC_RESET_CONTENT = 205;
public static final int SC_PARTIAL_CONTENT = 206;
public static final int SC_MULTIPLE_CHOICES = 300;
public static final int SC_MOVED_PERMANENTLY = 301;
public static final int SC_MOVED_TEMPORARILY = 302;
public static final int SC_SEE_OTHER = 303;
public static final int SC_NOT_MODIFIED = 304;
public static final int SC_USE_PROXY = 305;
public static final int SC_TEMPORARY_REDIRECT = 307;
public static final int SC_BAD_REQUEST = 400;
public static final int SC_UNAUTHORIZED = 401;
public static final int SC_PAYMENT_REQUIRED = 402;
public static final int SC_FORBIDDEN = 403;
public static final int SC_NOT_FOUND = 404;
public static final int SC_METHOD_NOT_ALLOWED = 405;
public static final int SC_NOT_ACCEPTABLE = 406;
public static final int SC_PROXY_AUTHENTICATION_REQUIRED = 407;
public static final int SC_REQUEST_TIMEOUT = 408;
public static final int SC_CONFLICT = 409;
public static final int SC_GONE = 410;
public static final int SC_LENGTH_REQUIRED = 411;
public static final int SC_PRECONDITION_FAILED = 412;
public static final int SC_REQUEST_ENTITY_TOO_LARGE = 413;
public static final int SC_REQUEST_URI_TOO_LONG = 414;
public static final int SC_UNSUPPORTED_MEDIA_TYPE = 415;
public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
public static final int SC_EXPECTATION_FAILED = 417;
public static final int SC_INTERNAL_SERVER_ERROR = 500;
public static final int SC_NOT_IMPLEMENTED = 501;
public static final int SC_BAD_GATEWAY = 502;
public static final int SC_SERVICE_UNAVAILABLE = 503;
public static final int SC_GATEWAY_TIMEOUT = 504;
public static final int SC_HTTP_VERSION_NOT_SUPPORTED = 505;</pre></span>
</td>
</tr>
</table>
</div>
<div id="addCookie">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">addCookie()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void addCookie(Cookie cookie)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Adds the specified cookie to the response.
</p></td>
</tr>
</table>
</div>
<div id="addDateHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">addDateHeader()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void addDateHeader(String headername, long date)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Adds a response header with the given name and date value. The date is specified in terms of milliseconds since the epoch ( January 1, 1970, 00:00:00 GMT).
</p></td>
</tr>
</table>
</div>
<div id="addHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">addHeader()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void addHeader(String headername, String value)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Adds a response header with the specified name and value.
</p></td>
</tr>
</table>
</div>
<div id="addIntHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">addIntHeader()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void addIntHeader(String headername, int value)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Adds a response header with the given name and integer value.
</p></td>
</tr>
</table>
</div>
<div id="containsHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">containsHeader()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public boolean containsHeader(String name)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns a <span class="LITERAL">boolean</span> indicating whether the named response header has already been set.
</p></td>
</tr>
</table>
</div>
<div id="encodeRedirectURL">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">encodeRedirectURL()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public String encodeRedirectURL(String url)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Encodes the specified URL for use in the <span class="LITERAL">sendRedirect()</span> method by including the session ID in it. If encoding (URL rewriting) is not needed, it returns the URL unchanged.
</p></td>
</tr>
</table>
</div>
<div id="encodeURL">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">encodeURL()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public String encodeURL(String url)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Encodes the specified URL for use in a reference element (e.g., <span class="LITERAL">&lt;a&gt;</span>) by including the session ID in it. If encoding (URL rewriting) is not needed, it returns the URL unchanged.
</p></td>
</tr>
</table>
</div>
<div id="flushBuffer">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">flushBuffer()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void flushBuffer() throws IOException</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Forces any content in the response body buffer to be written to the client.
</p></td>
</tr>
</table>
</div>
<div id="getBufferSize">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getBufferSize()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public int getBufferSize()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns the actual buffer size (in bytes) used for the response, or <span class="LITERAL">0</span> if no buffering is used.
</p></td>
</tr>
</table>
</div>
<div id="getCharacterEncoding">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getCharacterEncoding()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public String getCharacterEncoding()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns the name of the charset used for the MIME body sent in this response.
</p></td>
</tr>
</table>
</div>
<div id="getLocale">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getLocale()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public Locale getLocale()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns the locale assigned to the response. This is either a <span class="LITERAL">Locale</span> object for the server's default locale or the <span class="LITERAL">Locale</span> set with <span class="LITERAL">setLocale()</span>.
</p></td>
</tr>
</table>
</div>
<div id="getOutputStream">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getOutputStream()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public ServletOutputStream getOutputStream() throws IOException</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns a <span class="LITERAL">ServletOutputStream</span> suitable for writing binary data in the response. This method should not be used in a JSP page, since JSP pages are intended for text data.
</p></td>
</tr>
</table>
</div>
<div id="getWriter">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getWriter()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public PrintWriter getWriter throws IOException</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns a <span class="LITERAL">PrintWriter</span> object that can send character text to the client. This method should not be used in a JSP page, since it may interfere with the container's writer mechanism. Use the <span class="LITERAL">PageContext</span> method instead to get the current <span class="LITERAL">JspWriter</span>.
</p></td>
</tr>
</table>
</div>
<div id="isCommitted">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">isCommitted()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public boolean isCommitted()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns a <span class="LITERAL">boolean</span> indicating if the response has been committed.
</p></td>
</tr>
</table>
</div>
<div id="reset">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">reset()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void reset()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Clears any data that exists in the buffer as well as the status code and headers. If the response has been committed, this method throws an <span class="LITERAL">IllegalStateException</span>.
</p></td>
</tr>
</table>
</div>
<div id="sendError">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">sendError()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void sendError(int status) throws IOException</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sends an error response to the client using the specified status. If the response has already been committed, this method throws an <span class="LITERAL">IllegalStateException</span>. After you use this method, you should consider the response committed and should not write to it.
</p></td>
</tr>
</table>
</div>
<div id="sendError">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">sendError()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void sendError(int status, String message) throws IOException</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sends an error response to the client using the specified status code and descriptive message. If the response has already been committed, this method throws an <span class="LITERAL">IllegalStateException</span>. After you use this method, you should consider the response committed and should not write to it.
</p></td>
</tr>
</table>
</div>
<div id="sendRedirect">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">sendRedirect()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void sendRedirect(String location) throws IOException</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container will convert the relative URL to an absolute URL before sending the response to the client. If the response is already committed, this method throws an <span class="LITERAL">IllegalStateException</span>. After you use this method, you should consider the response committed and should not write to it.
</p></td>
</tr>
</table>
</div>
<div id="setBufferSize">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setBufferSize()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setBufferSize(int size)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets the preferred buffer size (in bytes) for the body of the response. The servlet container uses a buffer at least as large as the size requested. The actual buffer size used can be found with the <span class="LITERAL">getBufferSize()</span> method.
</p></td>
</tr>
</table>
</div>
<div id="setContentLength">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setContentLength()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setContentLength(int length)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets the length (in bytes) of the content body in the response. In HTTP servlets, this method sets the HTTP <span class="LITERAL">Content-Length</span> header. This method should not be used in a JSP page, since it may interfere with the container's writer mechanism.
</p></td>
</tr>
</table>
</div>
<div id="setContentType">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setContentType()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setContentType(String type)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets the content type of the response being sent to the client.
</p></td>
</tr>
</table>
</div>
<div id="setDateHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setDateHeader()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setDateHeader(String headername, long date)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets a response header with the given name and date value. The date is specified in terms of milliseconds since the epoch ( January 1, 1970, 00:00:00 GMT). If the header is already set, the new value overwrites the previous one.
</p></td>
</tr>
</table>
</div>
<div id="setHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setHeader()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setHeader(String headername, String value)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets a response header with the given name and value. If the header is already set, the new value overwrites the previous one.
</p></td>
</tr>
</table>
</div>
<div id="setIntHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setIntHeader()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setIntHeader(String headername, int value)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets a response header with the given name and integer value. If the header is already set, the new value overwrites the previous one.
</p></td>
</tr>
</table>
</div>
<div id="setLocale">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setLocale()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setLocale(Locale locale)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets the locale of the response, setting the headers (including the <span class="LITERAL">Content-Type</span> header's charset) as appropriate.
</p></td>
</tr>
</table>
</div>
<div id="setStatus">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setStatus()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setStatus(int statuscode)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Sets the status code for this response. Unlike the <span class="LITERAL">sendError()</span> method, this method only sets the status code; it doesn't add a body and it does not commit the response.
</p></td>
</tr>
</table>
</div>


<div id="encodeRedirectUrl">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">encodeRedirectUrl()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public String encodeRedirectUrl(String url)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.1 API, use <span class="LITERAL">encodeRedirectURL(String</span> <span class="LITERAL">url)</span> instead.
</p></td>
</tr>
</table>
</div>
<div id="encodeUrl">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">encodeUrl()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public String encodeUrl(String url)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.1 API, use <span class="LITERAL">encodeURL(String url)</span> instead.
</p></td>
</tr>
</table>
</div>
<div id="setStatus">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setStatus()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setStatus(int statuscode, String message)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.1 API, use <span class="LITERAL">setStatus(int)</span> to set a status code and <span class="LITERAL">sendError(int,</span> <span class="LITERAL">String)</span> to send an error with a description. This method was deprecated because of the ambiguous meaning of the message parameter.
</p></td>
</tr>
</table>
</div>
</body>
</html>