openfuture.bugbase.forms
Class RegistrationForm

java.lang.Object
  |
  +--org.apache.struts.action.ActionForm
        |
        +--openfuture.bugbase.forms.RegistrationForm
All Implemented Interfaces:
java.io.Serializable

public class RegistrationForm
extends org.apache.struts.action.ActionForm

Bean corresponding to Registration.jsp.

Created: Sat Jan 06 21:56:41 2001

Version:
$Revision: 1.5 $
Author:
Wolfgang Reissenberger
See Also:
Serialized Form

Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
RegistrationForm()
          Creates a new empty RegistrationForm instance.
RegistrationForm(User user)
          Creates a new RegistrationForm instance using the user data (password is not set).
 
Method Summary
 java.lang.String getEmail()
          Get the value of email.
 java.lang.String getName()
          Get the value of name.
 java.lang.String getPassword()
          Get the value of password.
 java.lang.String getPassword2()
          Get the value of password2.
 java.lang.String getUserid()
          Get the value of userid.
 void setEmail(java.lang.String v)
          Set the value of email.
 void setName(java.lang.String v)
          Set the value of name.
 void setPassword(java.lang.String v)
          Set the value of password.
 void setPassword2(java.lang.String v)
          Set the value of password2.
 void setUser(User user)
          Convenience method to propagate user data to this form.
 void setUserid(java.lang.String v)
          Set the value of userid.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Check, if all mandatory fields are set.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationForm

public RegistrationForm()
Creates a new empty RegistrationForm instance.

RegistrationForm

public RegistrationForm(User user)
Creates a new RegistrationForm instance using the user data (password is not set).
Parameters:
user - user data
Method Detail

getUserid

public java.lang.String getUserid()
Get the value of userid.
Returns:
Value of userid.

setUserid

public void setUserid(java.lang.String v)
Set the value of userid.
Parameters:
v - Value to assign to userid.

getPassword

public java.lang.String getPassword()
Get the value of password.
Returns:
Value of password.

setPassword

public void setPassword(java.lang.String v)
Set the value of password.
Parameters:
v - Value to assign to password.

getPassword2

public java.lang.String getPassword2()
Get the value of password2.
Returns:
Value of password2.

setPassword2

public void setPassword2(java.lang.String v)
Set the value of password2.
Parameters:
v - Value to assign to password2.

getName

public java.lang.String getName()
Get the value of name.
Returns:
value of name.

setName

public void setName(java.lang.String v)
Set the value of name.
Parameters:
v - Value to assign to name.

getEmail

public java.lang.String getEmail()
Get the value of email.
Returns:
value of email.

setEmail

public void setEmail(java.lang.String v)
Set the value of email.
Parameters:
v - Value to assign to email.

setUser

public void setUser(User user)
Convenience method to propagate user data to this form.
Parameters:
user - user data

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Check, if all mandatory fields are set. All fields are mandatory except for filename.
Overrides:
validate in class org.apache.struts.action.ActionForm
Returns:
list of missing entries.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.