--- [EMAIL PROTECTED] wrote: > Hi, > > I'm using > > struts-core-2.0.8 j4 distribution, > struts2-spring-plugin-j4-2.0.6, > and corresponding j4 distribution jars, > > > I have an action with several methods. I use each > method as an action mapping and I want > to use different validation.xml files for each > action mapping. > > In the documentation, AFAIU, it says that using the > [actionname]_[methodname]-validation.xml in the same > package with the action class should > work to accomplish this type of validation. But I > could't succeed to make the validation > work. > > Anybody has an idea? Thanks for any replies. > > My configuration follows: > > stockin.jsp > > <s:form method="POST" namespace="secure"> > <s:if test="%{documentDetail == null || > documentDetail.size == 0}"> > <s:textfield label="documentNumber" > required="true" > name="documentNumber" /> > <s:datetimepicker required="true" > label="invoiceDate" displayWeeks="5" > name="invoiceDate" > displayFormat="dd.MM.yyyy" /> > <s:submit label="Retrieve Invoice" > value="Retrieve Invoice" > action="Stockin_retrieveInvoice" > /> > </s:if> > <s:actionerror label="errors" /> > </s:form> > > Stockin_retrieveInvoice-validation.xml :
Is that a typo? While this is still a bit unclear to me (and I think wrong), you may need to name the XML file something like: Stockin-Stockin_retrieveInvoice-validation.xml. The "alias" filename component may want the name of the action (<action.../>'s "name" attribute value). d. ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]