org.apache.empire.struts2.actionsupport
Class ActionPropertySupport

java.lang.Object
  extended by org.apache.empire.struts2.actionsupport.ActionPropertySupport

public class ActionPropertySupport
extends java.lang.Object


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
ActionPropertySupport(ActionBase action, java.lang.String propertyName, boolean persist)
           
 
Method Summary
 void clear()
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 boolean hasValue(boolean lookOnSession)
           
 boolean setFromRequest()
          Sets the property value from a request param.
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

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

ActionPropertySupport

public ActionPropertySupport(ActionBase action,
                             java.lang.String propertyName,
                             boolean persist)
Method Detail

getName

public java.lang.String getName()

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

setFromRequest

public boolean setFromRequest()
Sets the property value from a request param. The request must contain a property of that name.

Returns:
true if the param was supplied with the request or false otherwise

clear

public void clear()

hasValue

public boolean hasValue(boolean lookOnSession)


Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.