Struts Action/ActionForm generation & Hibernate

James Neville <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
All,

I'm new to the list; been having a browse on the SF archive, trying to get a better handle on where this project is going..

We've just been trying out Middlegen for Hibernate mapping generation ---> VO generation.
Its working great, and its temping me to ditch a proprietary persistence architecture and replace it with Hibernate (this project is also doing v well-IMHO)!

Now i'm hearing some noises about Struts framework generation via Middlegen (ie this msg); I can only seem to gen EJB's from it, and the documentation is falling rather short.... this is about all I know how to do in an ant task:-

  <target
      name="middlegen-struts"
      description="Run Middlegen Struts Generator"
      unless="middlegen.skip"
      depends="prepare">

      <taskdef name="middlegen" classname="middlegen.MiddlegenTask" classpathref="project.class.path"/>
	  
	<middlegen
	  appname="${app.name}"
	  prefsdir="${rsrc.dir}"
	  gui="true"
	  databaseurl="${database.url}"
	  driver="${database.driver}"
	  username="${database.userid}"
	  password="${database.password}"
	  schema="${database.schema}"
	  catalog="${database.catalog}">
			<struts
			destination="${build.dir}"
			package="com.bb.struts"
			>
			<jsp destination="${build.dir}/jsp" />
			</struts>
	</middlegen>
  </target>

Is this the current state of development in CVS, or is there more we can test out? Anyone have any doco?:)
If not, does anyone have any suggestions for automating generation of a Struts application framework?

Thanks for any thoughts, and apologies for all the questions ;)

James.







-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.