Hi. arnaud.  I hope I understand your question.

Each jsp pages for the lookupdispatchaction should have a page element added:
 <html:hidden property="page" value="1"/>

Then in your validation.xml file have:
 name="wizardForm">
            <field property="lastName" page="1"
                    depends="required">
                <arg0 key="label.screen1.lastName"/>
            </field>

the action mappings should look something like this:

 <!-- Wizard Mapping -->
         <!-- Step 1 -->
         
         <action path="/ViewStep1"
                name="wizardForm"
                scope="session"
                type="org.apache.struts.actions.ForwardAction"
                input="/step1.jsp"
                parameter="/step1.jsp"
                validate="false" />
     <action path="/ProcessStep1"
        name="wizardForm"
        scope="session"
        type="edu.nmsu.psl.userwizard.AddPSLUserWizardAction"
        validate="true"
        input="/step1.jsp"
        parameter="methodToCall">
                <forward name="next" path="/ViewStep2.do" />
                <forward name="badnext" path="/ViewStep1.do" />
        </action>

       
        <!-- Step 2 -->
        
        <action path="/ViewStep2"
                name="wizardForm"
                scope="session"
                type="org.apache.struts.actions.ForwardAction"
                validate="false"
                input="/step2.jsp"
                parameter="/step2.jsp" />
        <action path="/ProcessStep2"
                name="wizardForm"
                scope="session"
                input="/step2.jsp"
                type="edu.nmsu.psl.userwizard.AddPSLUserWizardAction"
                validate="true"
                parameter="methodToCall">
                <forward name="previous" path="/ViewStep1.do" />
                <forward name="next" path="/ViewStep3.do" />
        </action>
       
       
        <!-- Step 3 -->

        <action path="/ViewStep3"
                name="wizardForm"
                scope="session"
                input="/step3.jsp"
                validate="false"
                type="org.apache.struts.actions.ForwardAction"
                parameter="/step3.jsp" />
        <action path="/ProcessStep3"
                name="wizardForm"
                scope="session"
                input="/step3.jsp"
                validate="true" 
                type="edu.nmsu.psl.userwizard.AddPSLUserWizardAction"
                parameter="methodToCall">
                <forward name="previous" path="/ViewStep2.do" />
                <forward name="finish" path="/wizard_done.jsp" />
        </action>
       
                                       
  </action-mappings>


I hope this helps.

--Brad

-----Original Message-----
From: arnaud gonzales [mailto:[EMAIL PROTECTED]
Sent: Wed 11/2/2005 6:36 AM
To: user@struts.apache.org
Subject: lookupdispatchaction and validator
 
hello,
I'm trying to use validator with lookupdispatchaction, it will be great to
generate the client JS validation.
Have you any links, samples?
Thanks in advance

--
Regards
Arnaud Gonzales.




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

Reply via email to