Hello
I am noticing unexpected behaviour when running the <strutsvalidationxml /> task.
My method for which I am generating a validation rule is:

    /**
     * Sets a String representation of surname.
     *
     * @struts.validator type="required" msgkey="errors.required" 
     * @struts.validator-args arg0value="jsp.person.surname.label" arg0resource="true"
     * 
     * @param A String value.
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }

And this gives the output of:

  <formset>
      <form name="PersonForm">
              <field property="surname"
                     depends="required">
                  <msg
                    name="required"
                    key="errors.required"/>

                  <arg0
                    key="jsp.person.surname.label"
                      resource="false"
                  />
                  <arg0
                    key="true"
                  />
              </field>
      </form>
  </formset>

As you can see, the arg0 value is generated strangely.
Any clues as to this appreciated (full xdoclet output below)

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