Do you have line
<strutsconfigxml version="1.1" destdir="${project.web-inf.dir}"/>
in your build script? I remember having similar problems before I added the
version number to strutsconfigxml tag.
harri
----- Original Message -----
From: "Vitaly Yurik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 28, 2003 9:49 PM
Subject: [Xdoclet-user] strutsvalidationxml with validation_xml.dtd produces
an empty formset
> Greetings,
> I have a simple form (only relevant parts are reproduced):
> /**
> * @struts:form name="editServerForm"
> */
> public final class EditServerForm extends ValidatorForm {
>
> /**
> * @struts:validator type="required"
> * @struts:validator type="minlength"
> * @struts:validator type="maxlength"
> * @struts:validator-var name="minlength" value="1"
> * @struts:validator-var name="maxlength" value="32"
> * @struts:validator-args arg0resource="editServerForm.serverName"
> */
> public void setName(String name) {
> this.name = name;
> }
>
> /**
> * @struts:validator type="integer"
> * @struts:validator-args arg0resource="editServerForm.listenPort"
> */
> public void setListenPort(int port){
> this.listenPort = port;
> }
> ----------------------------------------------------------------------
------------------------
> }
>
> My "lib" directory contains all jar files from xdoclet-bin-1.2b3.zip and
> struts.jar and commons-validator.jar. Below is relevant pieces of
bild.xml:
> <path id="webdoclet.class.path">
> <fileset dir="${java.dir}/libVal">
> <include name="*.jar" />
> </fileset>
> <pathelement path="${java.class.path}" />
> </path>
> <target name="webdoclet">
> <mkdir dir="${java.dir}/web/WEB-INF"/>
>
> <taskdef name="webdoclet"
> classname="xdoclet.modules.web.WebDocletTask"
> classpathref="webdoclet.class.path"/>
> <webdoclet destdir="${java.dir}/web/WEB-INF">
> <fileset dir="${java.dir}/com/validation">
> <include name="EditServerForm.java" />
> </fileset>
>
> <strutsvalidationxml validatexml="true"/>
> </webdoclet>
> </target>
>
> While I am running "ant webdoclet" I am getting an empty "formset" tag in
> validation.xml
>
> Any help is appreciated.
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user