Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Anchor
top
top

The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm. Refer to http://jakarta.apache.org/struts/Image Removed for additional details.

...

Geronimo is currently using the Sun ORB for RMI so it is required to use SUN JDK. These sample applications require as a minimum JDK 1.3. Refer to the following URL for details on how to download and install J2SE 1.4.2: http://java.sun.comImage Removed

Apache Ant 1.5

Apache Ant 1.5 or later is required for building the sample application. Ant can be downloaded from the following URL: http://ant.apache.orgImage Removed

Struts 1.2.9

Although not required for this particular sample, if you are building your own Struts application you can get Struts 1.2.9 from the following URL: http://struts.apache.org/Image Removed

Apache Geronimo v1.0

All the sample applications covered in this article will be deployed to Apache Geronimo v1.0. http://geronimo.apache.org/Image Removed

Back to Top

Sample application

In this article we will be exploring Geronimo's Struts support by configuring and deploying the JPetStore 5.0 sample application. JPetStore is a Struts-managed middle tier with iBATIS Database Layer as data access strategy. JPetStore uses the same data model and demo contents as the original, well known, JPetStore; see http://ibatis.apache.org/javadownloads.htmlImage Removed for additional details.

...

  • Ensure Apache Geronimo is up and running. If it is not running start it by typing the following command:
    <geronimo_home>\bin\geronimo run
  • Access the Geronimo Administration Console by pointing a Web browser to the following URL: http://localhost:8080/consoleImage Removed
  • Enter system as the user name and manager as the password.
  • From the Geronimo Administration Console click on Database Pools in the Console Navigation menu on the left hand side.
  • Use the wizard to create a new connection pool by clicking on Using the Geronimo database pool wizard.
  • Enter jdbc/jpetstore1 in the Name of Database Pool:.
  • Select HSQLDB Embedded from the Database Type: pull-down menu and click Next.
  • Click on Download a Driver, leave the default HSQLDB 1.7.3 and click Next.
  • Back in the Create Database Pool portlet enter sa as the user name and leave it blank in the password.
  • Enter jpetstore as the database name and click Next.
  • Click on Skip Test and Deploy.

...

To test the applicaiton open a web browser and access the following URL: http://localhost:8080/jpetstoreImage Removed

Click on Enter the Store, browse the catalog and place an order.

...