org.apache.tiles.web.util
Class TilesDispatchServlet

java.lang.Object
  extended by HttpServlet
      extended by org.apache.tiles.web.util.TilesDispatchServlet

public class TilesDispatchServlet
extends HttpServlet

Tiles dispatching servlet. Used to invoke a definition directly.


Field Summary
static java.lang.String CONTAINER_KEY_INIT_PARAMETER
          Init parameter to define the key of the container to use.
 
Constructor Summary
TilesDispatchServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse res)
          
protected  void doPost(HttpServletRequest req, HttpServletResponse res)
          
protected  java.lang.String getDefinitionName(HttpServletRequest request)
          Returns the called definition name for the given request.
 void init()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER_KEY_INIT_PARAMETER

public static final java.lang.String CONTAINER_KEY_INIT_PARAMETER
Init parameter to define the key of the container to use.

Since:
2.1.2
See Also:
Constant Field Values
Constructor Detail

TilesDispatchServlet

public TilesDispatchServlet()
Method Detail

init

public void init()
          throws ServletException

Throws:
ServletException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse res)
              throws ServletException,
                     java.io.IOException

Throws:
ServletException
java.io.IOException

getDefinitionName

protected java.lang.String getDefinitionName(HttpServletRequest request)
Returns the called definition name for the given request.

Parameters:
request - The request to parse.
Returns:
The definition name to render.

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse res)
               throws ServletException,
                      java.io.IOException

Throws:
ServletException
java.io.IOException