struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bart Busschots <>
Subject Validator not getting called and I can't see why
Date Thu, 03 Aug 2006 22:09:38 GMT
I'm either missing something stupid (which is always possible) or I've 
managed to break the validator. I have an app that uses validator all 
over the place and it's working fine in all my other actions but for 
this one action it is simply not getting called.

I can't see any difference between this action/form/validation and all 
the other ones that are working.

This is the form:

  <form-bean name="createStudentGroupForm" 
   <form-property name="groupName" type="java.lang.String" />
   <form-property name="noStudents" type="java.lang.String" />
   <form-property name="groupType" type="java.lang.String" />
   <form-property name="wikiText" type="java.lang.String" />
   <form-property name="studentNames" type="java.lang.String[]" />

This is the action:

  <action path="/mentor/createStudentGroupStep1" 
name="createStudentGroupForm" scope="session" validate="true" 
   <forward name="createAnonymous" 
path="/do/mentor/createAnonymousStudentGroup" />
   <forward name="getStudentNames" 
path="/home/mentor/getStudentNamesForm.jsp" />
   <forward name="fail" path="/home/mentor/addStudentGroupForm.jsp" />

And this is the validation:

  <form name="createStudentGroupForm">
   <field property="groupName" page="1" depends="required, mask">
    <arg0 key="mentor.createStudentGroup.groupName.label"/>
   <field property="noStudents" page="1" depends="required, integer">
    <arg0 key="mentor.createStudentGroup.noStudents.label"/>
   <field property="studentNames" page="2" depends="required">
    <arg0 key="mentor.createStudentGroup.studentNames.label"/>

Can anyone see something obviously wrong there?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message