Subject: Re: Struts Generator From: "Matt Raible" <[EMAIL PROTECTED]> === I'm also using the Mapper framework from andrejconsulting (see resources for link) in my BusinessDelegate classes. This makes it real simple to map form values to VO's:
FormToVOPropertyMapper.map(form, vo); The only issues it has are: --Forms can only contain String mutators. --VO's should contain object types. --No support for primitives in the VO. Would this be simple for me to add - as well as the components below? If modifying templates is all it takes - awesome! Matt "Matt Raible" <[EMAIL PROTECTED]> wrote in message news:adqe8u$val$[EMAIL PROTECTED]... > Roel, > > I got it to work with velocity 1.2. This looks like a great tool, and > easily configurable with the "templates". I'd love to use it, but my > current project is mostly done from the "class creation" perspective. > > I've been using Dave Winterfeldt's Generator > (http://home.earthlink.net/~dwinterfeldt/generator/) on this project - and > it works great, but it only generates DAO's, VO's and Forms. > > On my Struts projects, I like to use the following > features/components/concepts - and hope that I can modify your "generator" > to use them on my next project. > > Validator > Tiles > LookupDispathAction > BusinessDelegate to talk to the DAO > > It looks like you've put a lot of work into this - your time/effort is > appreciated. > > Thanks! > > Matt > > "Azrul Azwar" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]... > > Hi Matt, > > > > Thanks for trying. I haven't try Velocity 1.3, but if it is similar to > > the 1.2 version, it should have velocity-x.x.jar and > > velocity-dep-x.x.jar files. Use the velocity-dep.x.x.jar, and update the > > run.bat file. Hope this will work. > > > > -roel- > > > > > > =========================== > > > > Subject: Re: Struts Generator > > From: "Matt Raible" <[EMAIL PROTECTED]> > > === > > You've got my interest. When I try to run this tool, however, I get the > > following error: > > > > D:\Tools\karapan>run.bat test.xml > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/commons/collections/ExtendedProperties > > at > > org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java: > > 203) > > at > > org.apache.velocity.runtime.RuntimeSingleton.<clinit>(RuntimeSingleton.j > > ava:150) > > at org.apache.velocity.app.Velocity.init(Velocity.java:149) > > at > > com.javanovic.karapansapi.strutsgen.StrutsGenerator.generateFiles(Struts > > Generator.java:61) > > at > > com.javanovic.karapansapi.strutsgen.StrutsGenerator.main(StrutsGenera > > tor.java:40) > > D:\Tools\karapan> > > > > > > I am using: > > struts 1.1 b1 > > castor-0.9.3.9 > > velocity-1.3-rc1 > > xerces-1_4_4 > > > > on Windows XP with JDK 1.3.1_01 > > > > Thanks, > > > > Matt > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>