webwork.examples.i18n
Class Language

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bywebwork.examples.i18n.Shop
          extended bywebwork.examples.i18n.Language
All Implemented Interfaces:
Action, IllegalArgumentAware, java.io.Serializable, SessionAware

public class Language
extends Shop

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
 
Fields inherited from class webwork.examples.i18n.Shop
application, 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
Language()
           
 
Method Summary
protected  java.lang.String doExecute()
           
 java.lang.String getLanguage()
           
 void setLanguage(java.lang.String lang)
           
 
Methods inherited from class webwork.examples.i18n.Shop
getCart, getLocale, setSession
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, 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
 

Constructor Detail

Language

public Language()
Method Detail

setLanguage

public void setLanguage(java.lang.String lang)

getLanguage

public java.lang.String getLanguage()

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Overrides:
doExecute in class ActionSupport
Throws:
java.lang.Exception


Copyright © 2001-2003 WebWork All Rights Reserved.