T
Tim
I seem to be getting an error in the validation method of the
ValidatorForm sub class but the controller still passes the info to the
Action class which proceeds to bomb due to a missing startDate property.
How does Struts determine that an error has been found (ActionErrors
object not null?) and what causes it to show the error on the sending
page rather than executing the Action bean?
Any ideas?
The System.out.println("Entering validate in ScheduleSelectForm");
prints so I am getting into the method.
What do I put in the sending page to see the errors?
<html:errors/>
ValidatorForm method
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors result = super.validate(mapping, request);
System.out.println("Entering validate in ScheduleSelectForm");
return( result );
}
Struts-config.xml file portion
<action path="/gamesScheduleList"
type="hockeybeans.Test"
name="scheduleSelectForm"
scope="request"
validate="true"<forward
name="failure"
path="/criticalError.jsp"/>
<forward
name="success"
path="/gamesScheduleList.jsp"/>
</action>
ValidatorForm sub class but the controller still passes the info to the
Action class which proceeds to bomb due to a missing startDate property.
How does Struts determine that an error has been found (ActionErrors
object not null?) and what causes it to show the error on the sending
page rather than executing the Action bean?
Any ideas?
The System.out.println("Entering validate in ScheduleSelectForm");
prints so I am getting into the method.
What do I put in the sending page to see the errors?
<html:errors/>
ValidatorForm method
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors result = super.validate(mapping, request);
System.out.println("Entering validate in ScheduleSelectForm");
return( result );
}
Struts-config.xml file portion
<action path="/gamesScheduleList"
type="hockeybeans.Test"
name="scheduleSelectForm"
scope="request"
validate="true"<forward
name="failure"
path="/criticalError.jsp"/>
<forward
name="success"
path="/gamesScheduleList.jsp"/>
</action>