| java.lang.Object javax.servlet.GenericServlet com.caucho.servlets.ErrorStatusServlet
ErrorStatusServlet | public class ErrorStatusServlet extends GenericServlet (Code) | | Use ServletResponse.sendError() to send an error to the client.
<servlet>
<servlet-name>forbidden</servlet-name>
<servlet-class>com.caucho.servlets.ErrorStatusServlet</servlet-class>
<init>
<status-code>403</status-code>
<message>You cannot look at that.</message>
</init>
</servlet>
<servlet-mapping url-pattern="*.properties" servlet-name="forbidden"/>
<servlet-mapping url-pattern="/config/*" servlet-name="forbidden"/>
|
setMessage | public void setMessage(String message)(Code) | | The message to send, default is to send no message.
|
setStatusCode | public void setStatusCode(int code)(Code) | | The status code to send, default 404 (Not Found).
|
|
|