• Home
  • RSS Feed
  • Log in

Spring with Stripes – A Maven Based Sample Code
Posted by Balaji D Loganathan at around evening time: March 4th, 2008

The purpose of this post is to give a Maven based sample code of Spring with Stripes integration. The source code set is already in Eclipse project format, so you can use eclipse to view files content and structure.
This post will not explain about the techniques of integrating spring with stripes. The spring with stripes integration is very well explained at Stripes framework wiki page - Spring with Stripes. I kindly suggest you to read that documentation first before trying out the sample code given in this post. This post also assume that you are familiar with the basics of Maven, Eclipse, Stripes and Spring.

Few of the other "How to" samples (like Ajax addition, addition, echo, stripes layout reuse) that were documented in Stripes framework wiki page were also included in this sample code.

Downloading and running the sample code.

  1. Click simplewebapp.tar to download the Spring with Stripes sample code based on Maven
  2. Untar the downloaded tar file to a known location
  3. You will see a folder structure simillar to the image shown below
    stripeseclipse.png
  4. Go to extracted folder "simplewebapp" and analyse the pom.xml file content, especially the stripes and spring dependency nodes
     
    ...........pom.xml.....
    <dependencies>
     <dependency>
    	<groupId>junit</groupId>
    	<artifactId>junit</artifactId>
    	<version>3.8.1</version>
    	<scope>test</scope>
     </dependency>
     <dependency>
    	<groupId>net.sourceforge.stripes</groupId>
    	<artifactId>stripes</artifactId>
    	<version>1.4</version>
     </dependency>
     <dependency>
    	<groupId>org.springframework</groupId>
    	<artifactId>spring</artifactId>
    	<version>2.0.6</version>
     </dependency>
     <dependency>
    	<groupId>commons-logging</groupId>
    	<artifactId>commons-logging</artifactId>
    	<version>1.1</version>
     </dependency>
    </dependencies>
    ..............
     
  5. Run the maven commands with goals like install or package to build the application. Example mvn clean package
  6. The pom.xml has already plugin reference for Jetty and Tomcat. If you want to quickly build, run and view the sample code, then use the maven goal jetty:run or tomcat:run. Example, executing mvn clean jetty:run, will clean, build and deploy the application on an inplace Jetty server.
    Hit the browser with url http:/localhost:8080 to view the sample code home or index page. Sample home or index page is shown below
    Safaru

Thats it.
If you happen to face some problem on the using the given sample code, then please let me know by adding a comment to this post. I will try to reply for that.

  • Share/Bookmark

Filed under Ajax, Eclipse, Flex, Java, Maven, Spring, Stripes | 2 Comments »



2 Responses to “Spring with Stripes – A Maven Based Sample Code”



    net Says:
    Posted at: April 15, 2008 at 10:56 am

    How this project work with eclipse/eclipse Tomcat plugin?



    A N Gupta Says:
    Posted at: February 16, 2010 at 5:30 pm

    I really dont understand what value this post is adding!!



Leave a Reply

Click here to cancel reply.

Deployment automation for Java application running on Websphere, WebLogic and JBoss

Archives

  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Categories

  • Java (282)
  • Agile (109)
  • General (50)
  • Testing (42)
  • Performance (42)
  • Hibernate (36)
  • Scrum (33)
  • Podcast (31)
  • Architecture (31)
  • Spring (28)
  • SOA (24)
  • Maven (22)
  • Project Management (22)
  • Middleware (23)
    • Deployment (14)
  • Flex (17)
  • JPA (17)
  • Eclipse (15)
  • Xebia Labs (15)
  • Quality Assurance (14)

Tag Cloud

    Groovy Scrum Architecture Introduction to Agile Agile Awareness Workshop Scala SOA Grails JavaOne Lean Performance product owner Ajax Spring fitnesse IntelliJ Closures Functional Programming Seam Xebia qcon Semantic Web Maven Java esb XML Poppendieck Testing Agile Hibernate