org.apache.tiles.jsp.context
Class JspTilesRequestContext
java.lang.Object
org.apache.tiles.servlet.context.ServletTilesApplicationContext
org.apache.tiles.servlet.context.ServletTilesRequestContext
org.apache.tiles.jsp.context.JspTilesRequestContext
- All Implemented Interfaces:
- TilesRequestContext, TilesApplicationContext
public class JspTilesRequestContext
- extends ServletTilesRequestContext
- implements TilesRequestContext
Context implementation used for executing tiles within a
jsp tag library.
- Version:
- $Rev: 603723 $ $Date: 2007-12-12 21:07:37 +0100(mer, 12 dic 2007) $
Constructor Summary |
JspTilesRequestContext(javax.servlet.ServletContext context,
javax.servlet.jsp.PageContext pageContext)
Constructor. |
Method Summary |
void |
dispatch(String path)
Dispatches a path. |
javax.servlet.http.HttpServletResponse |
getResponse()
Get the underlying response. |
void |
include(String path)
Includes the response from the specified URL in the current response output. |
Methods inherited from class org.apache.tiles.servlet.context.ServletTilesRequestContext |
forward, getHeader, getHeaderValues, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, initialize, isUserInRole, release, wrapServletException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JspTilesRequestContext
public JspTilesRequestContext(javax.servlet.ServletContext context,
javax.servlet.jsp.PageContext pageContext)
- Constructor.
- Parameters:
context
- The servlet context to use.pageContext
- The page context to use.
dispatch
public void dispatch(String path)
throws IOException
- Dispatches a path. In fact it "includes" it!
- Specified by:
dispatch
in interface TilesRequestContext
- Overrides:
dispatch
in class ServletTilesRequestContext
- Parameters:
path
- The path to dispatch to.
- Throws:
IOException
- If something goes wrong during dispatching.- See Also:
ServletTilesRequestContext.dispatch(java.lang.String)
include
public void include(String path)
throws IOException
- Includes the response from the specified URL in the current response output.
- Specified by:
include
in interface TilesRequestContext
- Overrides:
include
in class ServletTilesRequestContext
- Parameters:
path
- The path to include.
- Throws:
IOException
- If something goes wrong during inclusion.
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
- Get the underlying response.
- Specified by:
getResponse
in interface TilesRequestContext
- Overrides:
getResponse
in class ServletTilesRequestContext
- Returns:
- The current request object.
Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.