I have a form-bean:

<form-bean name="viewScheduleForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="type" type="java.lang.String"/>
<form-property name="country" type="java.lang.String"/>
</form-bean>

For the action:

<action path="/view/schedule"
input="viewSchedule"
name="viewScheduleForm"
scope="request"
type="com.teachandtravel.presentation.actions.ViewScheduleAction"
validate="true">
<forward name="viewSchedule" path="/schedule/schedule.jsp"/>
<forward name="success" path="main.actions.forms.schedule"/>
</action>

If I mark it dynamic="true", no validation occurs, and the action gets hit without showing input. Without it, input is shown, but then no actual validation occurs and the action is hit regardless of user input.

Is there anything that needs to be done *inside* the Action for enable validation? Didn't see anything in the docs.

Thanks for your help,

A.

--
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to