> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Wednesday, August 18, 2004 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Validator is using action uri for form name 
> instead of form
> name
> 
> 
> Does RequestAccessForm extend ValidatorActionForm (or use 
> DynaValidatorActionForm)? That would explain things, me thinks.

Extends ValidatorActionForm.  So do the three working perfectly forms......


> 
> Jim Barrows wrote:
> > I have 4 forms in validation.xml.  3 of them work 
> correctly.  1 works.. oddly.  Struts is apprently thinking 
> that that the form name is /requestaccess, not 
> AccessRequestForm.  Now, first thought is that struts-config 
> is fubar, but:
> > <action 
> input="/english/investors/sections/general/pages/requestaccess.jsp"
> >             name="RequestAccessForm"
> >             path="/requestaccess"
> >             
> type="com.sssc.onlineaccess.actions.investors.RequestAccessAct
> ion" name="RequestAccessForm" validate="true">
> >             <forward name="next" 
> path="../website/english/investors/sections/general/pages/than
> kyou.html" redirect="true"/>
> >     </action>
> > That looks right to me.
> > Second thought was... what's wrong with validation.xml
> > <form name="RequestAccessForm">
> >                     <field property="name" depends="required">
> >                             <arg0 key="RequestAccessForm.name" />
> >                     </field>
> >                     <field property="title" depends="required">
> >                             <arg0 key="RequestAccessForm.title" />
> >                     </field>
> >                     <field property="company" 
> depends="required,mask">
> >                             <arg0 key="RequestAccessForm.company" />
> >                             <var>
> >                                     <var-name>mask</var-name>
> >                                     
> <var-value>${AlphaWhite}</var-value>
> >                             </var>
> >                     </field>
> >                     blah
> > </form>
> > Looks right to me.
> > So, I traced the code, all the way through the validation 
> code, and struts thinks the form name is /requestaccess.  
> Change the validation.xml form name to /requestaccess and it works.
> > So, given my talent for breaking things in new and unique 
> ways, how is this happening?  What could I have possible fat 
> fingered to get this kind of behavior?
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to