Ok, maybe, I'd have to check into struts code to really be certain....("input"
surely has some significance is what i'm thinking..) So just for the heck of it
though, what happens if you do say "/web/forms/orderForm.jsp" instead?

Andy Kriger wrote:

> OrderForm.do = /web/forms/orderForm.jsp
> That shouldn't make a difference. I like to refer to actions rather than
> JSPs to minimize the number of things I have to change if a JSP changes to a
> different JSP or to another action.
>
> -----Original Message-----
> From: Geeta Ramani [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 27, 2004 3:27 PM
> To: Struts Users Mailing List
> Subject: Re: form validation question
>
> Andy:
>
> Any reason why you have the unusual "input" param..?
>
> <action path="/SubmitOrder"
> >          type="MyClass"
> >          name="orderForm"
> >          validate="true"
> >          input="/OrderForm.do"
> >          scope="request">
> >         <forward name="success" path="/OrderThanks.do"/> </action>
> >
>
> I woud have thought you'd use this instead:
>
> <action path="/SubmitOrder"
> >          type="MyClass"
> >          name="orderForm"
> >          validate="true"
> >          input="/web/forms/orderForm.jsp"
> >          scope="request">
> >         <forward name="success" path="/OrderThanks.do"/> </action>
> >
>
> Regards,
> Geeta
>
> >
> > Andy Kriger wrote:
> >
> > > I am having a curious problem with form validation. I submit a form,
> > > see in the logs that the form fails to validate, however, the webapp
> > > does not return to the input page (I get a blank page with no HTML
> > > in it), so I do not see the form with error messages as expected. If
> > > I put text in the field, the form does submit correctly and I see
> > > the JSP specified in the resulting action chain. The log files have
> > > no error messages indicating something is amiss. When validation
> > > fails, the subsequent action is definitely not running (I do not see the
> logging in the execute method).
> > >
> > > Does anyone have any ideas what could be happening here?
> > > Or how I can track down the problem?
> > > Below is the relevant info...
> > >
> > > === STRUTS CONFIG ===
> > >
> > > <action path="/OrderForm" forward="/web/forms/orderForm.jsp" />
> > >
> > > <action path="/SubmitOrder"
> > >          type="MyClass"
> > >          name="orderForm"
> > >          validate="true"
> > >          input="/OrderForm.do"
> > >          scope="request">
> > >         <forward name="success" path="/OrderThanks.do"/> </action>
> > >
> > > <action path="/OrderThanks" parameter="/web/orderThanks.jsp"
> > > type="org.apache.struts.actions.ForwardAction"/>
> > >
> > > === orderForm.jsp ===
> > > <logic:messagesPresent>
> > >         <html:messages id="err">
> > >                 <%=err%><br/>
> > >         </html:messages>
> > > </logic:messagesPresent>
> > >
> > > <html:form action="SubmitOrder.do">
> > >         <html:text property="firstName" styleId="firstName" size="20"/>
> > >         <html:submit value="Press Me"/> </html:form>
> > >
> > > === VALIDATION CONFIG ===
> > > <form name="orderForm">
> > >         <field property="firstName" depends="required">
> > >                 <arg0 key="orderForm.firstName.label" name="required" />
> > >         </field>
> > > </form>
> > >
> > > === LOG MESSAGES ===
> > > [org.apache.struts.action.RequestProcessor][RequestProcessor    ]
> > > Validating input form properties
> > > [org.apache.struts.action.RequestProcessor][RequestProcessor    ]
> > > Validation failed, returning to '/OrderForm.do'
> > >
> > > Andy Kriger | Software Mechanic | Greater Than One, Inc.
> > > 28 West 27th Street | 7th Floor | New York, NY 10001
> > > P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > 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]


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

Reply via email to