webwork.examples.i18n
Class ComputePrice

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

public class ComputePrice
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
ComputePrice()
           
 
Method Summary
 double computePrice(double price)
           
 double getRealPrice()
           
 void setPrice(double price)
           
 
Methods inherited from class webwork.examples.i18n.Shop
getCart, getLocale, setSession
 
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
 

Constructor Detail

ComputePrice

public ComputePrice()
Method Detail

setPrice

public void setPrice(double price)

getRealPrice

public double getRealPrice()

computePrice

public double computePrice(double price)


Copyright © 2001-2003 WebWork All Rights Reserved.