The default template for XDoclet doesn't include generation validation.xml most likely. You can use my customized template from AppFuse if you like. I should probably add the validator stuff - it's a nice addition. If you enter a bug for it, I'll try and add it in short order.

http://tinyurl.com/2dt47

Matt

On Jun 25, 2004, at 8:27 AM, Kyle Korndoerfer wrote:

Thanks... I hand't seen that option (or really understood what it was
used for).

I had tried it on individual methods using @struts.form-field, but that
wasn't working (like you thought).

The only other question left is this: In the generated file, how do I
get the struts validation tags to show up for each method so that when
webdoclet parses the files, it'll automatically build the
struts-validation.xml file? I've tried putting the @struts.validator
tag on a setter method, but that didn't change anything.

Could this be something that hasn't been implemented yet or something
that isn't working yet (like the form-field tag)?

-={ Kyle }=-


--- Matt Raible <[EMAIL PROTECTED]> wrote:
You need to add an @struts.form include-all="true" at the top of your

class.  You should be able to do it individual methods (using
@struts.form-field), but I've never done it that way - and I've heard

from folks that its broken.  If you enter a bug for it, I'll try to
fix
it.

http://xdoclet.sourceforge.net/xdoclet/tags/apache-
[EMAIL PROTECTED]

Matt


On Jun 24, 2004, at 10:00 AM, Kyle Korndoerfer wrote:

I've just recently started using XDoclet with a new project (Struts
&
J2EE) and hadn't realized that there was an xdoclet task under
ejbdoclet that generated Struts forms from the EJB's (StrutsForm)
until
a recent question on this list. This is very handy, but I have a
small
question (I'm just missing something simple I guess).

When using the StrutsForm sub-task, the Struts form is created from
my
EJB, but there aren't any methods in it other than the default
constructor? How do I tag the fields so that the Struts form is
fully
generated (the get/set methods are generated)?

The lack of examples in the XDoclet documentation is not helping me
out
much. Thanks for any help you can provide.

-={ Kyle }=-


__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail


------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user



------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user




__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail


------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to