Well, you could have your IDE create interfaces based on your POJOs. Then you define what form objects implement those interfaces and ask your IDE to generate the getters and setters for you.
Or you could skip Struts entirely and use the Spring MVC. :) Then you can make your form objects be subclasses of your POJOs. For example, your "UserForm" class could extend your "User" class instead of extending the Struts "ActionForm" class. Thompson Marzagao -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sebastian Ho Sent: Friday, August 13, 2004 12:43 AM To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] Struts Forms Of cos it can't.. maybe someone should come out with a tool that inserts xdoclets tag after hibernate generates its POJO. Else it is impossbile to make use of the struts xdoclets tags if hibernate is used. I suppose that is what most ppl are doing.. If I can't find a solution to this, I will have to create the actionform by hand. Tedious but inevitable. sebastian On Fri, 2004-08-13 at 11:28, Matt Raible wrote: > XDoclet is not capable of processing Java files w/o marking the source > with XDoclet tags. At least, as far as I know. > > Matt > > On Aug 12, 2004, at 7:50 PM, Sebastian Ho wrote: > > > Hi > > > > Adding to this discussion. Lets say my hibernate POJO are generated > > (without any xdoclet tags). Any easy way for me to generate Struts > > ActionForm from them using xdoclet? Editing hundreds of hibernate POJO > > to add in xdoclet tags is stupid.. > > > > Thanks > > > > > > Sebastian > > > > > > On Fri, 2004-08-13 at 02:51, Matt Raible wrote: > >> They need to be in a merge directory in a global-forwards.xml file. > >> For > >> example: > >> > >> <global-forwards> > >> <forward name="mainMenu" path="/mainMenu.html"/> > >> </global-forwards> > >> > >> If you want to check out a project that uses XDoclet for a lot of > >> Struts > >> code generation (including ActionForms from Hibernate POJOs), check > >> out > >> AppFuse (http://appfuse.dev.java.net). > >> > >> Matt > >> > >> Laran Evans wrote: > >> > >>> How does XDoclet handle global-forwards in struts-config.xml. > >>> > >>> Is there example code around that I can just look at? > >>> > >>> Rupp, Heiko wrote: > >>> > >>>> I would say, docu is wrong here, as in the samples > >>>> there are some that use the struts tags in servlets. > >>>> Can you please raise an issue in JIRA about this > >>>> http://opensource.atlassian.com/projects/xdoclet/secure/ > >>>> Dashboard.jspa ? > >>>> > >>>> > >>>> > >>>> > >>>>> -----Original Message----- > >>>>> From: [EMAIL PROTECTED] > >>>>> [mailto:[EMAIL PROTECTED] On Behalf Of > >>>>> Laran Evans > >>>>> Sent: Thursday, August 12, 2004 3:17 PM > >>>>> To: [EMAIL PROTECTED] > >>>>> Subject: [Xdoclet-user] Struts Forms > >>>>> > >>>>> I have a struts ActionForm which I would like to markup with > >>>>> xdoclet tags. > >>>>> > >>>>> The documentation for @struts.form however says "Applies to: > >>>>> Entity beans". Does this mean that the only ActionForm > >>>>> implementations xdoclet supports are implemented as EJBs? > >>>>> > >>>>> Is it reasonable for me to think that I'll be able to generate > >>>>> my entire struts-config.xml file via xdoclet? I would think > >>>>> so. Or am I going to have to define things like my non-EJB > >>>>> ActionForm subclasses, global-forwards, controller and > >>>>> message-resources in struts-config.xml and have xdoclet add the > >>>>> rest? > >>>>> > >>>>> TIA > >>>>> > >>>>> > >>>>> ------------------------------------------------------- > >>>>> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > >>>>> Media > >>>>> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > >>>>> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > >>>>> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > >>>>> _______________________________________________ > >>>>> xdoclet-user mailing list > >>>>> [EMAIL PROTECTED] > >>>>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> ------------------------------------------------------- > >>>> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > >>>> Media > >>>> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > >>>> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > >>>> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > >>>> _______________________________________________ > >>>> xdoclet-user mailing list > >>>> [EMAIL PROTECTED] > >>>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user > >>>> > >>>> > >> > >> > >> > >> > >> ------------------------------------------------------- > >> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > >> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > >> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > >> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > >> _______________________________________________ > >> xdoclet-user mailing list > >> [EMAIL PROTECTED] > >> https://lists.sourceforge.net/lists/listinfo/xdoclet-user > >> > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > xdoclet-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user