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
    Modifier and Type
    Field
    Description
    (package private) static org.apache.commons.logging.Log
     

    Fields inherited from class org.apache.struts.action.Action

    servlet
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    getMessage(String key, 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 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 class org.apache.struts.tiles.actions.TilesAction
      Throws:
      Exception
    • getMessage

      public String getMessage(String key, 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.