• 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.....
    
     
    	junit
    	junit
    	3.8.1
    	test
     
     
    	net.sourceforge.stripes
    	stripes
    	1.4
     
     
    	org.springframework
    	spring
    	2.0.6
     
     
    	commons-logging
    	commons-logging
    	1.1
     
    
    ..............
    
  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

Tags: Ajax, Eclipse, Flex, Maven, Spring, Stripes
Filed under Java | 3 Comments »



3 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?

    Reply


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

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

    Reply


    Maskter Says:
    Posted at: December 13, 2011 at 4:14 am

    simplewebapp.tar download show “Error 404 – Not Found”

    Reply


Leave a Reply

Click here to cancel reply.


Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    ACT Xebia Concurrency Control Ajax product owner TDD lean architecture Grails Javascript Agile Hibernate lean architectuur Lean SOA Eclipse Frameworks JPA Architecture Spring Moving to India Maven Scala Flex Java Groovy agile architectuur XML Scrum JPA implementation patterns Oracle

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures