Vinicius, Did you include the @struts.form tag with a name attribute in the form's class javacdoc? I assume you have since the form is being added to the struts-config.xml. If you have included this comment and still are having issues could you send more information like pertinent snippets of your form class and of your build script? There are several things I usually check when I'm having trouble with generation of my validation.xml:
1. Form extends ValidatorForm 2. Form is marked with the @struts.form tag and has the name attribute set 3. In the build script the fileset of the webdoclet task should include "**/*Form" 4. The webdoclet task should include the <strutsvalidationxml/> subask. Regards, Rod -----Original Message----- From: [EMAIL PROTECTED] on behalf of Vinicius Carvalho Sent: Mon 3/14/2005 6:31 AM To: xdoclet-user@lists.sourceforge.net Cc: Subject: Re: [Xdoclet-user] Question on <strutsvalidation> task Rod, I forgot to post that, But I already extend the Validator form (not directly though) I extend a BaseForm which extends ValidatorForm. Any other ideas? Thanks On Mon, 14 Mar 2005 06:24:03 -0600, Rod Coffin <[EMAIL PROTECTED]> wrote: > Vinicius, > > In addition to marking the form's methods with the @struts.validator tag your form also needs to extend the ValidatorForm class and to be marked with the @struts.form tag. Your class declaration should look as follows: > > /** > > * @struts.form name="myForm" > > */ > > public class MyForm extends ValidatorForm > > { > > ... > > } > > Does this help? > > Regards, > > Rod > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of Vinicius Carvalho > Sent: Mon 3/14/2005 5:28 AM > To: xdoclet > Cc: > Subject: [Xdoclet-user] Question on <strutsvalidation> task > > Hello there! I've just started to use xdoclet to generate my struts > files. So far it was working great for actions and form beans. Problem > is it is not generating my validation.xml file (well it does generate > an empty one ...) Here's my configuration: > > <strutsvalidationxml destDir="web/WEB-INF" mergeDir="web/WEB-INF" > > > and here's one of my form's methods > /** > * @return Returns the abateSaldoFinanceiro. > * @struts.validator > * type="required" > * > */ > > Although this form is included on the struts-config.xml no validation > is included on the validation.xml > > any ideas?? > > Thanks all > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > xdoclet-user mailing list > xdoclet-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user
<<winmail.dat>>