I assume that you are referring to the ActionForm class' validate() method.  If so, 
you *must* further have specified an 'input' attribute for the action mapping in 
question.  The framework will forward the request to the path that is the value of the 
'input' attribute.  So, if you have

<action path="/someAction"
                type="com.foo.SomeAction"
                name="someBean"
               input="somePage.jsp">
</action>

then, upon error in validation, the request will be routed to 'somePage.jsp'.

Make sure that you have the attributes of your action mapping defined correctly.
Sri

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 20, 2003 7:50 AM
To: [EMAIL PROTECTED]
Subject: validate


Hello,
I have run into problems while using validate funkcion. If the function validates 
false I add actionError to the list. But the struts doesn't display the same page. 
Instead it tries to display page with name "/<action>.do", where <action> is action 
parametr form <html.form> tag. With this action is not bound any page so browser 
displayes "Page not found" message. 
 
I even tryed to add action "login.do" to struts-config.xml, to catch this action, but 
with no success. It probably doesn't work because of the dot ".".
 
I'll be glad if anyone can help
 
Thanx
 
MA

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to