Class LayoutAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.tiles.actions.TilesAction
com.softslate.commerce.customer.core.LayoutAction
public class LayoutAction
extends org.apache.struts.tiles.actions.TilesAction
The Tiles contoller action that is used by the default "baseLayout",
"baseLeftLayout", and "baseCenterLayout" Tiles definitions. This controller
handles various aspects of the request that correspond to the specific page
the request is ending up on such as the welcome page, product page, category
page, etc.
- Author:
- David Tobey
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForward
execute
(org.apache.struts.tiles.ComponentContext context, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Runs as a request is forwarded to a Tiles definition.getMessage
(String key, Locale locale) Look up and return a message from a given bundle among the StrutsMessageResources
objects in the application scope.Methods inherited from class org.apache.struts.tiles.actions.TilesAction
execute
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
LayoutAction
public LayoutAction()
-
-
Method Details
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.tiles.ComponentContext context, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception Runs as a request is forwarded to a Tiles definition. In particular, this method sets the page title for the request. This is the string used in the <title> tag of the HTML's <head> section. In addition, it populates the RequestLog object's customerID, customerUserName, orderID, orderNumber, administratorID, and/or administratorUserName with values if they have been populated during the course of the request.- Overrides:
execute
in classorg.apache.struts.tiles.actions.TilesAction
- Throws:
Exception
-
getMessage
Look up and return a message from a given bundle among the StrutsMessageResources
objects in the application scope.- Parameters:
key
- Message key to be looked up and returned.locale
- The locale to look the message up with.- Returns:
- The message, or
null
if the message can't be found.
-