If you dl'd the latest middlegen, then there is a samples directory that
has a build.xml which will gen struts, hibernate and ejb.  The struts
framework gen relies on EJB, so don't drop the ejb part.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Neville
Sent: Tuesday, March 02, 2004 6:26 AM
To: [EMAIL PROTECTED]
Subject: [Middlegen-user] Struts Action/ActionForm generation &
Hibernate

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
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user


-------------------------------------------------------
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
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to