com.softslate.commerce.customer.core
Class SwitchLanguageAction

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.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
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
SwitchLanguageAction()
           
 
Method Summary
 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 Detail

log

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

SwitchLanguageAction

public SwitchLanguageAction()
Method Detail

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


Copyright © SoftSlate, LLC 2003–2005