com.quadrique.jbuildingblocks.core.struts.controller.forms
Class JbbDynaForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.action.DynaActionForm
com.quadrique.jbuildingblocks.core.struts.controller.forms.JbbDynaForm
- All Implemented Interfaces:
- Serializable, org.apache.commons.beanutils.DynaBean
public abstract class JbbDynaForm
- extends org.apache.struts.action.DynaActionForm
The base class for all dynamic forms
- See Also:
- Serialized Form
| Methods inherited from class org.apache.struts.action.DynaActionForm |
contains, get, get, get, getDynaClass, getMap, getString, getStrings, initialize, initialize, remove, reset, reset, set, set, set, toString |
| Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServletWrapper, setMultipartRequestHandler, setServlet, validate |
JbbDynaForm
public JbbDynaForm()
getSession
public javax.servlet.http.HttpSession getSession(javax.servlet.http.HttpServletRequest zRequest)
throws Exception
- Parameters:
zRequest -
- Returns:
- the session or null
- Throws:
Exception
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Overrides:
validate in class org.apache.struts.action.ActionForm
validateForm
public abstract void validateForm(org.apache.struts.action.ActionErrors errors)
throws Exception
- Parameters:
errors -
- Throws:
Exception
isValid
public boolean isValid()
- Returns:
- Returns true if the form is valid (i.e. validateForm returns an empty set)
setValid
public void setValid(boolean valid)
- Parameters:
valid -
set
public void set(String name,
boolean value)
- Parameters:
name - value -
set
public void set(String name,
int value)
- Parameters:
name - value -
set
public void set(String name,
Date value)
- Parameters:
name - value -
set
public void set(String name,
float value)
- Parameters:
name - value -
set
public void set(String name,
double value)
- Parameters:
name - value -
getAsBoolean
public boolean getAsBoolean(String name)
- Parameters:
name -
- Returns:
- the boolean value
getAsInt
public int getAsInt(String name)
throws Exception
- Parameters:
name -
- Returns:
- the integer value
- Throws:
Exception
getAsDate
public Date getAsDate(String name)
throws Exception
- Parameters:
name -
- Returns:
- the Date value
- Throws:
Exception
getAsString
public String getAsString(String name)
- Parameters:
name -
- Returns:
- the String value
getAsStringFromUTF8
public String getAsStringFromUTF8(String name)
throws Exception
- Parameters:
name -
- Returns:
- the String value. the actual input is presumed to be encoded in UTF-8 as often seen (e.g. when receiving data from a Flash application)
- Throws:
Exception
getAsFloat
public float getAsFloat(String name)
throws Exception
- Parameters:
name -
- Returns:
- the float value
- Throws:
Exception
setDateTime
public void setDateTime(String name,
Date value)
- Parameters:
name - value -
getAsDateTime
public Date getAsDateTime(String name)
throws Exception
- Parameters:
name -
- Returns:
- the date time
- Throws:
Exception
getAsDouble
public double getAsDouble(String name)
throws Exception
- Parameters:
name -
- Returns:
- the float value
- Throws:
Exception
Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.