org.scopemvc.controller.servlet.jsp
Class JSPContext

java.lang.Object
  |
  +--org.scopemvc.controller.basic.ViewContext
        |
        +--org.scopemvc.controller.servlet.ServletContext
              |
              +--org.scopemvc.controller.servlet.jsp.JSPContext

public class JSPContext
extends ServletContext

A ServletContext that handles showView() for JSPView implementations by redirecting to a JSP.

Version:
$Revision: 1.8 $ $Date: 2002/09/05 15:41:48 $
Author:
Steve Meyfroidt
See Also:
ServletContext

Field Summary
static java.lang.String BOUND_MODEL
          Key that the JSP's bound model is stored under in the HTTPRequest for access by the JSP.
 
Fields inherited from class org.scopemvc.controller.servlet.ServletContext
formParameters, request, response, servlet
 
Constructor Summary
JSPContext(ScopeServlet inServlet, javax.servlet.http.HttpServletRequest inRequest, javax.servlet.http.HttpServletResponse inResponse, java.util.HashMap inFormParameters)
          Create with an HttpServletResponse to use on a showView during initialisation, and a HttpServletRequest accessible to application code.
 
Method Summary
 void showView(View inView)
          Show the visible JSPView from the passed ServletView, after putting its bound model into the request under the BOUND_MODEL key.
 
Methods inherited from class org.scopemvc.controller.servlet.ServletContext
exit, formatMessageToHTML, getFormParameters, getHttpRequest, getHttpResponse, getServlet, handleInternalError, hasShownView, hideView, setHttpResponse, showError, startProgress, stopProgress
 
Methods inherited from class org.scopemvc.controller.basic.ViewContext
addProperty, clearProperties, clearThreadContext, getProperty, getViewContext, removeProperty, setGlobalContext, setThreadContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOUND_MODEL

public static final java.lang.String BOUND_MODEL
Key that the JSP's bound model is stored under in the HTTPRequest for access by the JSP.

See Also:
Constant Field Values
Constructor Detail

JSPContext

public JSPContext(ScopeServlet inServlet,
                  javax.servlet.http.HttpServletRequest inRequest,
                  javax.servlet.http.HttpServletResponse inResponse,
                  java.util.HashMap inFormParameters)
Create with an HttpServletResponse to use on a showView during initialisation, and a HttpServletRequest accessible to application code.

Parameters:
inServlet - TODO: Describe the Parameter
inRequest - TODO: Describe the Parameter
inResponse - TODO: Describe the Parameter
inFormParameters - TODO: Describe the Parameter
Method Detail

showView

public void showView(View inView)
Show the visible JSPView from the passed ServletView, after putting its bound model into the request under the BOUND_MODEL key.

Specified by:
showView in class ServletContext
Parameters:
inView - TODO: Describe the Parameter


Copyright © 2000-2002 The Scope Team. All Rights Reserved.