Does anyone know how the "name" attribute is supposed to work when generation Struts Forms from POJOs? In the <actionform> task I added, if I add a name (i.e. name="addressForm"), I end up with AddressaddressFormForm.java as the filename.

I'm assuming the behavior should be that the "name" attribute stays lowercase and the filename gets the first letter uppercased. Is this correct?

name="addressForm"
-> AddressForm.java, @struts.form name="addressForm"

name="AddressForm"
-> same as above

name="generatedstuff"
-> Generatestuff.java, @struts.form name="generatedstuff"

Also, I noticed that generating forms with specific fields only works if you have "name" specified on both the @struts.form tag and the @struts.form-field tag. Anyone know why this is? Shouldn't the form-field just read from the form tag? What's the point of specifying a name on the the form-field if you can't generate more than 1 actionform from the same class?

Thanks,

Matt



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to