It is normal to show the path of the submit on the validate since that is the request that it is processing when an error occurs (the roundtrip)
sandeep --- "Gregory F. March" <[EMAIL PROTECTED]> wrote: > > Quick version: > > How does one handle a tile-based form that fails > validation? Or, is > there a special forward tag in the form's action > that I need? > > Long version: > > Ok, I've managed to get simple validation working > (why is there not > reference to the html:errors tag in the validation > chapter in the > O'Reilly book?! Ack!). > > Now, I am trying to validate a multipage form that > resides in a tile. > What I am getting is basically what I was getting > yesterday with my > last validation email. > > The players: > > Form name: LOCCreateForm (a DynaValidatorForm) > Tile page: LOCCreateParticipanty.jsp > Parent: LOCCreate.jsp > Action name: SaveTWSItem > > The scenario: > > LOCCreate.jsp has some logic tags to determine which > tile to load in > the body, as in: > > <tiles:insert definition="crp.main" > flush="true"> > <logic:equal parameter="page" value="1"> > <tiles:put name="body" > value="/loc/tiles/LOCCreateParticipants.jsp" /> > </logic:equal> > .... > > But, I'm not sure if this is relevant. > > When validation fails, the url generated is of the > form: > > > http://myserver:port/app/SaveTWSItem.do?<parameters > here> > > (as opposed to any in my action's forward decls). > > It seems that when the validation fails, I don't > have the return > forward set up properly. Do I need a special > forward tag in my > SaveTWSItem action? > > Here is my validation.xml: > > <form-validation> > <formset> > <form name="LOCCreateForm"> > <field > property="CRN" > depends="required,mask"> > <arg0 key="crp.loc.create.crn"/> > <var> > <var-name>mask</var-name> > <var-value>^[0-9]*$</var-value> > </var> > </field> > </form> > </formset> > </form-validation> > > Here is my struts-config.xml: > > <form-bean > name="LOCCreateForm" > > type="org.apache.struts.validator.DynaValidatorForm"> > > <!-- Participants --> > > <form-property name="CompanyOrDivisionID" > type="java.lang.String"/> > <form-property name="Destination" > type="java.lang.String"/> > <more form properties> > ... > > <action > path="/SaveTWSItem" > type="com.mycompany.action.SaveTWSItemAction" > scope="session" > name="LOCCreateForm" > validate="true" > input="/LOCCreate.jsp" > parameter="action"> > > <forward > name="Success" > path="/mainpage/mainpage.jsp" > redirect="true" /> > > <forward > name="Failure" > path="/errors/general.jsp" > redirect="true" /> > > <more forwards> > ... > > Thanks for any help... > > /greg > > -- > Gregory F. March -=- > http://www.gfm.net:81/~march -=- AIM:GfmNet > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]