BaseFormpublic class BaseForm extends org.apache.struts.action.ActionForm
Fields Summary |
---|
private String | _redirectUri |
Methods Summary |
---|
public void | checkCreditCardDateFormat(java.lang.String value, java.lang.String msg, org.apache.struts.action.ActionErrors errors)
//~ Methods ----------------------------------------------------------------
boolean err = false;
try
{
int i = value.indexOf( "-" );
if ( ( err = ( i >= 0 ) ) )
{
int lhs = Integer.parseInt( value.substring( 0, i ) );
int rhs = Integer.parseInt( value.substring( i + 1 ) );
err = !( ( lhs >= 1 ) && ( lhs <= 12 ) && ( rhs >= 0 ) );
}
}
catch ( Exception e )
{
err = true;
}
if ( err )
{
errors.add( "ActionForm", new ActionError( msg ) );
}
| public void | checkLength(java.lang.String value, int len, java.lang.String msg, org.apache.struts.action.ActionErrors errors)
if ( ( value == null ) || ( value.length( ) < len ) )
{
errors.add( "ActionForm", new ActionError( msg ) );
}
| public void | checkNotEmpty(java.lang.String value, java.lang.String msg, org.apache.struts.action.ActionErrors errors)
if ( ( value == null ) || ( value.trim( ).length( ) == 0 ) )
{
errors.add( "ActionForm", new ActionError( msg ) );
}
| public java.lang.String | getRedirectUri()
return _redirectUri;
| public void | setRedirectUri(java.lang.String redirectUri)Sets the redirectUri.
_redirectUri = redirectUri;
|
|