com.softslate.commerce.customer.core
Class LayoutAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.tiles.actions.TilesAction
          extended by 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
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
LayoutAction()
           
 
Method Summary
 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)
          Runs as a request is forwarded to a Tiles definition.
 java.lang.String getMessage(java.lang.String key, java.util.Locale locale)
          Look up and return a message from a given bundle among the Struts MessageResources 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

LayoutAction

public LayoutAction()
Method Detail

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 java.lang.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.

Overrides:
execute in class org.apache.struts.tiles.actions.TilesAction
Throws:
java.lang.Exception

getMessage

public java.lang.String getMessage(java.lang.String key,
                                   java.util.Locale locale)
Look up and return a message from a given bundle among the Struts MessageResources 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.


Copyright © SoftSlate, LLC 2003–2005