wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts2 development in Eclipse:  Where to put all the Struts2 jar files... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 development in Eclipse:  Where to put all the Struts2 jar files..." Watch "Struts2 development in Eclipse:  Where to put all the Struts2 jar files..." New topic
Author

Struts2 development in Eclipse: Where to put all the Struts2 jar files...

Gary Marshall
Ranch Hand

Joined: Feb 19, 2007
Posts: 121
Hello all...

So I am working through Budi Kurniawan's Struts 2Design and Programming book. For each chapter in the book I install the appropriate application code from the book's web site and configure it in my Eclipse IDE. The following Struts2 jar files are required in the ...//WEB-INF/lib folder for each application in each chapter I am going through:

  • commons-logging-1.0.4.jar
  • freemarker-2.3.8.jar
  • ognl-2.6.11.jar
  • struts2-core-2.0.11.2.jar
  • xwork-2.0.4.jar


  • I am in chapter 3 and I'm thinking there must be some common library I can create on my hard drive where I can put these jar files and set the path to these jar files in each applicaiton that I create that points to this common liibrary. This, of course, then prevents these jar files from begin replicated within each applcation.

    FYI... I am using Tomcat 6.

    Before I go ahead and trash these applications that took me a long time to configure to get working without erorrs, Could somebody make a recommendation or two as to how to set up this common library and have all my Struts2 applications point to it? Should I perhaps move these jar files into some folder inside of my Tomcat installation? Or perhaps simply open a folder on my C: drive and store all these jar files there?

    Thank you all for your time. If this is not the appropriate forum for this question please advise.

    Gary


    G
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    No, you should just keep them in each application.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Struts2 development in Eclipse: Where to put all the Struts2 jar files...
     
    Similar Threads
    Deploy Struts2 blank application on JBoss 5
    Recommendations for Webhosting for Struts2 (GoDaddy issue)
    Struts2 + AjaxTags JSTL not working
    Package Struts2 actions/supported code in a jar?
    Exception starting filter struts2