I am new to xdoclet but have been enjoying it for a few weeks while using it on a struts project. I'm finding that @struts.validator is not working for me though. The strutsvalidationxml task does seem to produce
a validation.xml file but it only contains the included contents from
the validation-global.xml merge file that I created.
Here is the code that is supposed to generate an entry:
/**
* @struts.validator type="required" msgkey="errors.required"
*/
public void setAreacode(String areacode) {
this.areacode = areacode;
}in my ant file (nested in webdoclet) :
<strutsconfigxml destDir="etc/web" mergeDir="etc/merge" version="1.1"/> <strutsvalidationxml destDir="etc/web" mergeDir="etc/merge" />
My validation.xml contains the global elements but <formset> </formset> are empty. Ant generated no errors.
Is there a merge (validation-formset.xml ?) file that I could use
to insert the <form> info into validation.xml until I get the dynamic generation working?
Thanks in advance.
Vincent
smime.p7s
Description: S/MIME Cryptographic Signature
