webwork.examples.i18n
Class Shop

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bywebwork.examples.i18n.Shop
All Implemented Interfaces:
Action, IllegalArgumentAware, java.io.Serializable, SessionAware
Direct Known Subclasses:
Add, CDList, Checkout, ComputePrice, Delete, Language, Restart

public class Shop
extends ActionSupport
implements SessionAware

This code is an adaptation of the I18N example from the JavaWorld article by Govind Seshadri. http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp_p.html

See Also:
Serialized Form

Field Summary
protected  java.util.Map application
           
protected  java.util.Map session
           
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages, log
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
Shop()
           
 
Method Summary
 Cart getCart()
           
 java.util.Locale getLocale()
          Get the locale for this action.
 void setSession(java.util.Map session)
           
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, execute, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected java.util.Map session

application

protected java.util.Map application
Constructor Detail

Shop

public Shop()
Method Detail

setSession

public void setSession(java.util.Map session)
Specified by:
setSession in interface SessionAware

getCart

public Cart getCart()

getLocale

public java.util.Locale getLocale()
Description copied from class: ActionSupport
Get the locale for this action. Applications may customize how locale is chosen by subclassing ActionSupport and override this method.

Overrides:
getLocale in class ActionSupport
Returns:
the locale to use


Copyright © 2001-2003 WebWork All Rights Reserved.