I must say that I am not dealing with multiple pages.
But adding that feature shouldn't be a problem.
Here they are:

validation.xml :
----------------------------------------------------------------------------
--------
      <form    name="/findLoans">
         <field    property="accountNo"
                   depends="required,numCheck">
                     <arg0
key="prepareSearchPageForm.accountno.displayname"/>
                     <arg1 name="numCheck" key="${var:fieldLength1}"
resource="false"/>
                     <arg2 name="numCheck" key="${var:fieldLength2}"
resource="false"/>
                     <var>
                       <var-name>fieldLength1</var-name>
                       <var-value>10</var-value>
                     </var>
                     <var>
                       <var-name>fieldLength2</var-name>
                       <var-value>13</var-value>
                     </var>
         </field>
      </form>
      <form    name="/findVisaMc">
            <field property="accountNo"
                    depends="required, minlength,maxlength">
                <arg0   key="prepareSearchPageForm.accountno.displayname"/>
                <arg1   key="${var:minlength}" name="minlength"
                   resource="false"/>
                <arg2   key="${var:maxlength}" name="maxlength"
                   resource="false"/>
                <var>
                    <var-name>maxlength</var-name>
                    <var-value>16</var-value>
                </var>
                <var>
                    <var-name>minlength</var-name>
                    <var-value>16</var-value>
                </var>
            </field>
      </form>
----------------------------------------------------------------------------
------------------

Struts-config.xml :
----------------------------------------------------------------------------
-----------------
<form-bean      name="prepareSearchPageForm"
  type="org.apache.struts.validator.DynaValidatorActionForm">
  <form-property name="accountNo" type="java.lang.String"/>
</form-bean>

    <action   path="/findLoans"
              type="com.bbandt.imagesys.docretrieval.action.FindLoansAction"
              name="prepareSearchPageForm"
              scope="request"
              input="/FindLoans.jsp" validate="true">
       <forward name="success" path="/FindLoansResults.jsp"/>
       <forward name="main" path="/FindLoansResultsMain.jsp"/>
    </action>

    <action   path="/findVisaMc"
 
type="com.bbandt.imagesys.docretrieval.action.FindVisaMcAction"
              name="prepareSearchPageForm"
              scope="request"
              input="/FindVisaMc.jsp" validate="true">
       <forward name="success" path="/FindLoansResults.jsp"/>
       <forward name="main" path="/FindLoansResultsMain.jsp"/>
    </action>
----------------------------------------------------------------------------
-----------------


Hope this helps.

Reddy Pingili
                   
> -----Original Message-----
> From: as as [SMTP:[EMAIL PROTECTED]
> Sent: Friday, March 05, 2004 2:49 PM
> To:   Struts Users Mailing List
> Subject:      RE: Validation help for same Form, multiple pages/tabs
> 
> If possible.could you encose the snippet please!
> Thanks!
> 
> "Pingili, Madhupal" <[EMAIL PROTECTED]> wrote:Well, It's not too hard to
> convert the LookupDispatchAction into
> separate Actions for you Wendy. Of course, I don't know the processing
> logic
> in LookupDispatchAction.
> I am using DynaValidatorActionForms and I validate based on the action
> path.
> I have 4 struts-menu tabs linking to 4 different actions.
> It's working great so far.
> 
> Reddy Pingili 
> 
> > -----Original Message-----
> > From: Wendy Smoak [SMTP:[EMAIL PROTECTED]
> > Sent: Friday, March 05, 2004 2:00 PM
> > To: Struts Users Mailing List
> > Subject: RE: Validation help for same Form, multiple pages/tabs
> > 
> > Robert wrote:
> > > Are you using DispatchAction or LookupDispatchAction? 
> > 
> > LookupDispatchAction. And even worse, it's a cookie that controls which
> > "tab" to show, not always a request parameter. I think I may have
> > painted myself into a corner...
> > 
> > -Wendy Smoak
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Search - Find what you're looking for faster.

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

Reply via email to