I've looked at your template, but Iam unsure how to proceed and use it
in my build. Is it as simple as downloading the template into my src
tree and referencing it as follows?:

<!-- generate struts forms from EJB's -->
<xdoclet destdir="${build.dir}/web/gen"
        excludedtags="@version,@author"
        addedtags="@xdoclet-generated at ${TODAY}"
        force="${xdoclet.force}">

    <fileset dir="..."/>

    <!-- generate struts forms -->
    <actionform destdir="${build.dir}/web/gen"
            templateFile=".../struts_form.xdt">
        <packageSubstitution packages="model"
            substituteWith="webapp.form"/>
    </actionform>
</xdoclet>

Or is there something else I would need to do?

If this is the case, then I will submit a bug in the Issue Tracker
(like you asked) to grab all of the Struts validation tags and put them
in the resulting '*Form.java' files which can later be processed by the
strutsform sub-task of webdoclet.

As I said in a previous email, I'm just getting started with XDoclet &
EJB's, so I am not overly familiar with the full potential of XDoclet
yet (and it's extensibility).

Thanks for your assitance through all of this. You've helped me alot.

-={ Kyle }=-


--- Matt Raible <[EMAIL PROTECTED]> wrote:
> 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 }=-
> >>>
> >>> _______________________________________________
> >>> xdoclet-user mailing list
> >>> [EMAIL PROTECTED]
> >>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
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

Reply via email to