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.

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.RequestAccessAction" 
name="RequestAccessForm" validate="true">
                <forward name="next" 
path="../website/english/investors/sections/general/pages/thankyou.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]



Reply via email to