You could try to look at the xDoclet project from 
sourceforge.net(http://xdoclet.sourceforge.net/).

Others will be in a better position to evaluate it, as I've only been playing with it 
for a few days now and found it really cool.

When developing EJB's you only need to create the Bean file. inside that you place 
some java doc comments that describe finder methods, mappings to database tables etc. 
Then an ant script runs against this building the interface classes.

At the same time as doing this it also builds Data Transfer Objects (Value Object) for 
your Entity Beans and some Util classes which act as Service Locators, all rocking 
stuff.

There is some support for Struts in there too, but so far I haven't read up on this. 
Might be worth looking into?

Have a good weekend
IV


>  from:    Darren Hill <[EMAIL PROTECTED]>
>  date:    Fri, 16 Aug 2002 14:03:02
>  to:      [EMAIL PROTECTED]
>  subject: Re: EJB
> 
> Hi All,
> 
> I know its Friday, but I'm leaving 'on a jet plane' to Newfoundland and I
> have a few questions.
> 
> I'm creating an application that uses Entity EJB's ( and Stateless Session
> Beans as an service layer ) and want to know how I can convey the data in
> those EJB's onto a jsp.  Do I REALLY need to create a corresponding
> ActionForm that duplicates the data in the EJB?  I don't want pass the EJB's
> to the JSP layer ( BIG NO NO ).  Can I make use of the DynaActionForms?
> 
> -----Original Message-----
> From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
> Sent: August 16, 2002 8:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: data Structure to use for a list of data
> 
> 
> ArrayList of Java Beans
> 
> However, I have tested sucessfully ArrayList of dynabeans (from 
> Commons/BeanUtils package). By using dynabeans you would not need to create 
> specific JavaBean classes for each type of data row.
> 
> Adolfo.
> 
> 
> >From: "Mazza, Glen  R, PERSCOM" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: data Structure to use for a list of data
> >Date: Fri, 16 Aug 2002 08:23:48 -0400
> >
> >Hello,
> >
> >Very common master-detail pattern:  User enters a query and gets a
> >multi-column master list of items matching that query.  Then the user
> >selects an item in the list to get to a detail form on that item.
> >
> >The query/JDBC and detail form I can handle, but what Java data structure
> >(created in the action object) should I use to hold the master list items:
> >assume about 4-5 column items, one of them supplying data for the 
> >hyperlink:
> >
> ><link id=1>   Last Name, First Name      Address       Email   etc.
> ><link id=2>   Last Name, First Name      Address       Email   etc.
> ><link id=3>   Last Name, First Name      Address       Email   etc.
> >
> >Struts-related issues: (1) I expect to use the Iterator tag for multi-page
> >returns, I'm unsure if that would affect the data structure chosen.  (2) 
> >I'm
> >also interested in ease of display on the subsequent master list page, so I
> >would like a data structure that can be easily manipulated by the Struts 
> >tag
> >libraries in rendering the page.
> >
> >Thanks,
> >Glen
> >
> >--
> >To unsubscribe, e-mail:   
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> 
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to