com.jcorporate.expresso.core.servlet.viewhandler
Class ViewHandler
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.jcorporate.expresso.core.servlet.StdServlet
com.jcorporate.expresso.core.servlet.DBServlet
com.jcorporate.expresso.core.servlet.viewhandler.ViewHandler
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- Direct Known Subclasses:
- DefaultViewHandler, JSPViewHandler, XMLViewHandler
- public abstract class ViewHandler
- extends DBServlet
- See Also:
- Serialized Form
| Methods inherited from class com.jcorporate.expresso.core.servlet.StdServlet |
getSchema, getServerName, getServerPort, getServletPrefix, getServletPrefix, getString, getString, handleParam, setSchema, showError, showError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewHandler
public ViewHandler()
handleView
public abstract void handleView(ControllerResponse con,
HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException,
ControllerException,
NonHandleableException
- The ViewHandler implementation must implement only this method
- Throws:
ServletException
IOException
ControllerException
NonHandleableException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Both GET and POST for the ViewHandler simply pass the information
from parameters and form fields on to the named controller object.
The Controller object passes back a series of Inputs, Outputs
and Actions that are a result of the requested Controller
- Overrides:
doGet in class DBServlet
- Parameters:
request - Standard request objectresponse - Standard response object
- Throws:
ServletException - If an uncaught exception occurs
IOException - If an I/O error occurs while communicating with
the client
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException,
IOException
- Handle POST method, typically from a form. The only difference between
get and post in this servlet is that when processing post, we look
for a parameter with a name of the form "button_xxx", where xxx is
the next state, as the state to controller into might vary depending on
what button the user presses.
- Overrides:
doPost in class DBServlet
- Parameters:
req - Standard request objectres - Standard response object
- Throws:
ServletException - If an uncaught exception occurs
IOException - If an I/O error occurs while communicating with
the client
getTitle
public String getTitle()
- Description copied from class:
StdServlet
- Ancestors of this class override this method to return a specific title that is
used by the security administration Controllers to describe the servlet
- Overrides:
getTitle in class StdServlet
- Returns:
process
public void process(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- This is a master method that is does the processing for both GET
and POST.
Creation date: (1/10/01 8:38:52 AM)
author Adam Rossi, PlatinumSolutions
- Parameters:
request - javax.servlet.http.HttpServletRequestresponse - javax.servlet.http.HttpServletResponse
- Throws:
ServletException
IOException
Please see www.jcorporate.com for information about new Expresso releases.