Erik Hatcher has published an example of using Ant/Xdoclet to generate a JSP and Form.properties file from an ActionForm. I've used it and it's pretty slick. You can find more information at:
http://tinyurl.com/3o6z HTH, Matt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of tek1 > Sent: Wednesday, December 18, 2002 9:57 PM > To: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] struts dynaaction forms > > > although i'm busy working on some xdoclet stuff for castor, i > will be using > struts soon and was contemplating creating an ant task, where > you specify > your struts-config.xml file and the directory with your html > file, and it > then scans each html file for a form tag and automatically > creates the > dynaform tags in your struts-config.xml based on the form(s) > found in the html. > > do you know if such a utility is available, or am i dreaming? > > perhaps it's not really appropriate for xdoclet since there > would be no > @tags and the generation is based on an html file and not a > java class... :| > > > > At 15:33 02/12/19 +1100, you wrote: > >Just found the xdoclet.sourceforge.net/struts.html file. That helps > >greatly! > > > >I meant the xml to be generated, but the action form will certainly > >help. I agree it would be great to be able to generate it > from a VO! or > >at least be able to tag it in a similar way to vo tagging so > they are > >both generated together. But what it is there should > certainly simplify > >things a bit; just need some VERY careful naming of HTML fields :) > > > >Colin > > > >-----Original Message----- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]]On Behalf Of Matt > >Raible > >Sent: Thursday, 19 December 2002 3:18 PM > >To: [EMAIL PROTECTED] > >Subject: RE: [Xdoclet-user] struts dynaaction forms > > > > > >DynaActionForms are just ActionForms that are defined in > >struts-config.xml. There is no real "generation" of them, > unless you > >want the XML generated for you. There is a @struts.form tag > that can > >be used on EntityBeans to create ActionForms. Personally, > I'd love it > >if I could use @struts.form tags on a VO rather than an > EntityBean, but > >oh well. > > > >Matt > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]] On > Behalf Of Colin > > > Canfield > > > Sent: Wednesday, December 18, 2002 9:02 PM > > > To: [EMAIL PROTECTED] > > > Subject: [Xdoclet-user] struts dynaaction forms > > > > > > > > > Has there been any work done with using xdoclet to generate > > > dynaactionform entries, or even just actionforms. > > > > > > It seems actionforms are very close to value objects. It > should be > > > possible to generate value objects to act as action forms just by > > > changing the parent; the problem is these are generated from the > > > bean rather than the jsp. With careful naming it could > all work, but > > > it means the model (ejbs) need to know a LOT about the controller > > > part of the world. It would be better if something very > similar to > > > the current value objects could be generated from the jsp pages. > > > > > > Has anyone attempted this sort of thing, or is there something > > > already in place I have missed ? > > > > > > Thanks, Colin Canfield > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: Order your Holiday > Geek Presents > > > Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, > > > Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, > > > WebCams, Smart Putty. > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > _______________________________________________ > > > Xdoclet-user mailing list [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: Order your Holiday Geek Presents > >Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, > Caffeinated > >Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, > Smart Putty. > >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > >_______________________________________________ > >Xdoclet-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: Order your Holiday Geek Presents > >Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, > Caffeinated > >Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, > Smart Putty. > >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > >_______________________________________________ > >Xdoclet-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek > Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control > Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying > Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
