|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.opensymphony.webwork.dispatcher.ServletDispatcher
FilterDispatcher instead
public class ServletDispatcher
Main dispatcher servlet in WebWork2 which acts as the controller in the MVC paradigm.
When a request enters the servlet the following things will happen:
HttpServletResponse.SC_INTERNAL_SERVER_ERROR error and any resource errors
(i.e., invalid action name or missing JSP page) will result in a
HttpServletResponse.SC_NOT_FOUND error. Instead of traditional servlet init params this servlet will initialize itself using WebWork2 properties. The following properties are used upon initialization:
Integer.MAX_VALUE will be used
(essentially unlimited so be careful).
ServletDispatcherResult,
Serialized Form| Field Summary | |
|---|---|
protected static Log |
LOG
Deprecated. Logger for this class. |
| Fields inherited from interface com.opensymphony.webwork.WebWorkStatics |
|---|
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER |
| Constructor Summary | |
|---|---|
ServletDispatcher()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
init(ServletConfig servletConfig)
Deprecated. Initalizes the servlet. |
void |
service(HttpServletRequest request,
HttpServletResponse response)
Deprecated. Services the request by determining the desired action to load, building the action context and then executing the action. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Log LOG
| Constructor Detail |
|---|
public ServletDispatcher()
| Method Detail |
|---|
public void init(ServletConfig servletConfig)
throws ServletException
class documentation for more
detail.
init in interface Servletinit in class GenericServletservletConfig - the ServletConfig object.
ServletException - if an error occurs during initialization.
public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
This method also transparently handles multipart requests.
service in class HttpServletrequest - the HttpServletRequest object.response - the HttpServletResponse object.
ServletException - if an error occurs while loading or executing the action.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||