Class SwitchLanguageAction

java.lang.Object
org.apache.struts.action.Action
org.apache.struts.tiles.actions.TilesAction
com.softslate.commerce.customer.core.SwitchLanguageAction

public class SwitchLanguageAction extends org.apache.struts.tiles.actions.TilesAction
Action class to handle a request from the user to switch the language that navigational elements, buttons, and labels are displayed with. Corresponds to the url "/SwitchLanguage.do". The execute() method of this class reads a URL parameter named "language", and and optional parameter named "country", and sets the user's locale accordingly, as well as other locale session variables used by the JSTL and Struts tag libraries.
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.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     

    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

    • SwitchLanguageAction

      public SwitchLanguageAction()
  • Method Details

    • execute

      public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Overrides:
      execute in class org.apache.struts.tiles.actions.TilesAction