> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
> Sent: Wednesday, August 18, 2004 12:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Validator is using action uri for form name 
> instead of form
> name
> 
> 
> Well, Jim -- I am not sure about the other three -- but if your form 
> extends ValidatorActionForm (not ValidatorForm) it means that you are 
> matching the <form name="/blah"> to the your action path not the 
> ActionForm name.

Why yes, I am wearing the dunce cap today, why do you ask?

Bill you're right of course.  Didn't even notice that.  Talked with QA, who said yes 
the other validaiton is in fact working... were not exactly correct in what they said. 
 They thought I was talking about something else.... *SIGH*

And now... with much amusement... changing to ValidatorForm works!!!

If you will excuse me, I now have to pick some wall out of my forehead, and find a new 
cap....


> 
> 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