Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.form
Class ValidatedUserGroupForm  view ValidatedUserGroupForm download ValidatedUserGroupForm.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.RuntimeCollective.webapps.form.UserGroupForm
          extended bycom.RuntimeCollective.webapps.form.ValidatedUserGroupForm
All Implemented Interfaces:
BeanForm, java.io.Serializable

public class ValidatedUserGroupForm
extends UserGroupForm

A form for editing a group of users. This subclass adds a validate method that check for empty names and already existing names.

Version:
$Id: ValidatedUserGroupForm.java,v 1.4 2003/09/30 15:13:14 joe Exp $

Field Summary
static int NAME_LENGTH
          Maximum name length
 
Fields inherited from class com.RuntimeCollective.webapps.form.UserGroupForm
DELETE_ACTION, EDIT_ACTION, REGISTER_ACTION
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ValidatedUserGroupForm()
           
 
Method Summary
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          If the name field is empty then return error.
 
Methods inherited from class com.RuntimeCollective.webapps.form.UserGroupForm
getFormAction, getName, getType, populateBean, populateForm, reset, setFormAction, setName, setType
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_LENGTH

public static final int NAME_LENGTH
Maximum name length

See Also:
Constant Field Values
Constructor Detail

ValidatedUserGroupForm

public ValidatedUserGroupForm()
Method Detail

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
If the name field is empty then return error. We also check if this if the new name is different from existing names.