You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alessio <mo...@dit.unitn.it> on 2003/04/15 09:12:17 UTC

use of validator

Sorry if i've posted another this mail...but is important for understand the
logic of validator...
I've a question about the use of validator...
if i've a form, i use validator for create a client-side validation with
javascript...but if  i've an form located on a page that is called with some
parameter( for example mypage.do?param1=..&param2=...and i use a
DynaValidatorForm )
how could return to page's form if there is an error?
i resolve this with:
...
<action name="myForm" type="...." input="/actionF.do" path="/myPath"
validate="true" />
<action type="..." path="/actionF" />
 ...
in this case if i've an form into a page called with parameter i use an
action with input and in case of error this is called(this action contains
an return as:
new ActionForward("/myPath.do?param1=..&param2=...,true); )
Now i think why use the client validation if i must use another action for
return to form?
I wrong my code or isn't possible return to page using validator if i use an
form into a page called with some parameter?
Thanks in advance.
Alessio





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