Erik Hatcher has posted a good example of using XDoclet with Struts,
EJBs, JUnit and JBoss, you can find it at:
Just a few bits of information about my application (before you start
sending me bug reports):
- it is my intention to document it further (coming soon!)
- Ant 1.5.1 is required
- JUnit 3.8(.1) is required (junit.jar in ANT_HOME/lib)
- You must provide j2ee.jar (its too big, and probably illegal, to
bundle). You can build with 'ant -Dj2ee.jar=/path/to/my/j2ee.jar'
Let me know if anyone has any issues with it, or comments.
The purpose of the app is a documentation search engine (using Ant's
own documentation in the example provided, but you can supply your own
HTML/text files if you like).
I've also posted a similar example to Erik's. However, mine uses
XDoclet to generate a VO (with hibernate capabilities) and a
ValidatorForm (for Struts) from an EntityBean. The EntityBean is never
used, but is needed to generate a StrutsForm. It can be found at
http://javawebapps.com/security-example.zip. The readme.txt file in
the zip should explain everything. I'll be updating this one in the
weeks to come with a more robust Struts application demonstrating
master-detail screens and all the nifty struts features.
On Thursday, December 12, 2002, at 04:04 PM, Jim Clayson wrote:
> Forgive me but I am struggling to get going and I don't know where
> else to look.
> I am used to using Ant, tomcat, struts and jboss(3) as parts of my dev
> tools, servers and environment and now I would like to see if I can
> setup XDoclet and use it.
> I have downloaded the distribution and unpacked it locally. I have
> looked at the getting started docs.
> It seems as though the doclet target is called only once per build
> execution.(or designed to be called only once)
> I have several modules which get compiled seperately and each module
> has a different source and destination location. What I can't figure
> out is how I tell the ejbdoclet task to iterate through a list of
> source locations and their corresponding destination locations.
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility Learn to use your power
> at OSDN's High Performance Computing Channel
> Xdoclet-user mailing list