Hi there

I am trying but failing to generate the struts validation.xml file using XDoclet (1.2).
I have the following defined in my struts-validation file

         <strutsvalidationxml
            mergedir="${build.xdoclet.dir}/struts-validation"/>

I have a source file which contains the method:

    /**
     * Returns a String representation of the value.
     *
     * @struts.validator type="required" msgkey="query.required"
     * 
     * @return The String value, maybe null.
     */
    public String getSurname() {
        return surname;
    }

I know that XDoclet is reading this file, because the form name is generated Ok, and 
appears in struts-config.xml.
But the validation.xml generated is:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator 
Rules Configuration 1.0//EN" 
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

<form-validation>
  <!--
     This is a blank Validator form file with a commented examples.
-->

    <global>

        <!-- An example global constant
        <constant>
            <constant-name>postalCode</constant-name>
            <constant-value>^\d{5}\d*$</constant-value>
        </constant>
        end example-->

    </global>

  <formset>
  </formset>
</form-validation>

Can anyone please advise on what I might be doing wrong?
I am using
Xdoclet 1.2
Ant 1.6.1
Java 1.4.0_01

many thanks
Matt



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to