Struts / Validator PlugIn Problem
Hello,
I am building a small LoginForm with the Validator PlugIn ( struts 1.3.8 - tomcat 5.0).
The Problem is:
The first page validates perfectly. I get the proper error-messages and the right forwarding.
But the second page is trouble:
Its displayed correctly, but if I push the login button it kicks me back to page one... regardless if the input was correct or not..
Ive build page2 according to page1... but it seems I screwed sth up and I cant find it...
here ist my struts-config:
<struts-config>
<form-beans>
<form-bean name="orderFormBean"
type="coreservlets.OrderFormBean"/>
<form-bean name="orderFormBean2"
type="coreservlets.OrderFormBean2"/>
</form-beans>
<action-mappings>
<action path="/actions/order"
type="coreservlets.Order"
name="orderFormBean"
scope="request"
input="/forms/order-form.jsp">
<forward name="success"
path="/forms/order-form2.jsp"/>
</action>
<action path="/actions/order2"
type="coreservlets.Order2"
name="orderFormBean2"
scope="request"
input="/forms/order-form2.jsp">
<forward name="success2"
path="/WEB-INF/results/order-confirmation.jsp"/>
</action>
</action-mappings>
<message-resources parameter="MessageResources"/>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
if u want me to post more of the code. please tell me.
thanks guys

