Erik
Thanks for responding again.

The output I am seeking is:
    <arg0
       key="jsp.person.surname.label"
       resource="true"
    />

The documentation on the Xdoclet site says:

arg0value     text   Value of argument        index 0    
arg0resource  text   Resource key of argument index 0  

So this implied the structure defined by:

* @struts.validator type="required" msgkey="errors.required" 
* @struts.validator-args arg0value="jsp.person.surname.label" arg0resource="true"

and this gave the output listed in my earlier message.

Are you able to say what tag structure (ie in source file) would result in the XML 
output above?

thanks
Matt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Erik
Hatcher
Sent: 05 April 2004 18:05
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] strutsvalidationxml generates incorrectly?


On Apr 5, 2004, at 12:05 PM, Matthew Hegarty wrote:
>     /**
>      * 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)

While this may seem odd, it is as designed.  You should not use 
arg0resource and arg0value together, use one or the other.  They are 
mutually exclusive.

What is your desired effect?  Start with what you want and work 
backwards.

        Erik



-------------------------------------------------------
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


-------------------------------------------------------
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