This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes To Implement struts in tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "To Implement struts in tomcat?" Watch "To Implement struts in tomcat?" New topic
Author

To Implement struts in tomcat?

Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
Hello,
To Implement struts in tomcat,which file we require to download from net?
li bei
Greenhorn

Joined: Jul 22, 2007
Posts: 20
strtus.apache.org release

You don't have to add any file to tomcat.

Instead ,you have to put the jar file in the WEB-INF/lib directory in your application which use struts.


I am sorry that my English is poor.If there is something wrong with my words,please tell me .Thank you very much.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
There's nothing special about deploying a Struts application to Tomcat. You just copy the war file you've created to the proper directory in Tomcat the same as you would with any other J2EE war file.


Merrill
Consultant, Sima Solutions
Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
posted Wednesday, July 25, 2007 1:07 PM
--------------------------------------------------------------------------------
strtus.apache.org release

You don't have to add any file to tomcat.

Instead ,you have to put the jar file in the WEB-INF/lib directory in your application which use struts.
--------------------


Which jar file I have to put in WEB-INF /lib directory
Thanks for information
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3353

struts-<version>.jar file. The version could vary as that of the implementation. You may get struts-1.2.1 jar say for example if you download the 1.2.1 version.

You can do it by two ways.

  • Place the jar file inside your web applications "WEB-INF/lib" directory so that it will be useful ONLY to the specific web app.
  • Place it in the <TOMCAT_INSTALLATION_DIR/shared/lib" directory so that it will be useful for all web applications deployed in that instance of tomcat which uses Struts. - The common library files required by many applications will follow this way.



  • Hope this helps.


    Everything has got its own deadline including one's EGO!
    [CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
    Vilas Lawande
    Ranch Hand

    Joined: Nov 07, 2006
    Posts: 127
    Thanks Ranchers,
    For help...........
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: To Implement struts in tomcat?