On Apr 6, 2004, at 6:13 AM, Matthew Hegarty wrote:
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:

Again, these two are mutually exclusive attributes. Use one or the other.


* @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?

Sure.... @struts.validator-args arg0resource="jsp.person.surname.label"


That is all. The idea with the design of the Struts Validator XDoclet support was to make it succinct and logical, whereas the underlying XML design is verbose and a bit nonsensical. I did not want that nonsensical nature to show through in the tags. The resource attribute in the XML defaults to value true (right?) so there is no need for that to be output in the XML.

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

Reply via email to