Package org.apache.struts.tiles
Class ActionController
java.lang.Object
org.apache.struts.tiles.ActionController
- All Implemented Interfaces:
Serializable
,Controller
Struts wrapper implementation of Controller. This implementation wraps an
Action
in a Controller
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Method associated to a tile and called immediately before the tile is included.void
perform
(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Deprecated.Use execute() instead.
-
Constructor Details
-
ActionController
Constructor.- Parameters:
action
- Action to be wrapped.
-
-
Method Details
-
perform
@Deprecated public void perform(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws ServletException, IOException Deprecated.Use execute() instead. This will be removed after Struts 1.2.Method associated to a tile and called immediately before tile is included. This implementation calls a Struts Action. No servlet is set by this method.- Specified by:
perform
in interfaceController
- Parameters:
tileContext
- Current tile context.request
- Current request.response
- Current response.servletContext
- Current servlet context.- Throws:
ServletException
IOException
-
execute
public void execute(ComponentContext tileContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws Exception Description copied from interface:Controller
Method associated to a tile and called immediately before the tile is included.- Specified by:
execute
in interfaceController
- Parameters:
tileContext
- Current tile context.request
- Current requestresponse
- Current responseservletContext
- Current servlet context- Throws:
Exception
- See Also:
-