Installing and configuring Tomcat and Struts

By: Emiley J Emailed: 1730 times Printed: 2344 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

This tutorial uses Windows environment to develop Struts application and Tomcat servlet container to deploy and test Struts applications. Precisely we will use Tomcat-5.0.14 Beta. You can download 
Tomcat 5.0.14 from http://jakarta.apache.org/tomcat and follow the link to download. There are several binaries available – several variations of tar, exe and zip files. Choose the 5.0.14.zip file and unzip it. A folder called jakarta-tomcat5.0.14 is created automatically. This is the TOMCAT_HOME directory. Under  the TOMCAT_HOME, there are a lot of folders of which two are important – bin  and webapps folders. The bin folder contains two batch files -startup.bat, used to start the Tomcat and shutdown.bat, used to stop the Tomcat. All the WAR files are dropped in the webapps directory and get deployed automatically. 

Installing Struts is very easy. In the Struts web site, http://jakarta.apache.org/struts, go to download section and select the 1.1 Release Build. Once you download the zipped archive of Struts 1.1 release, unzip the file to a convenient location. It automatically creates a folder named “jakarta-struts-1.1”. It has three sub-folders. The lib sub-folder contains the struts.jar – the core library that you want to use and other jars on which the Struts depends. You would normally copy most of these jars into the WEB-INF/lib of your web application. The webapps sub-folder contains a lot of WAR files that can just dropped into any J2EE application server and tested. 

You can test your Tomcat installation and also study Struts at the same time. Start Tomcat using startup.bat and then drop the struts-documentation.war from your Struts webapps folder into Tomcat’s webapps folder. The WAR is immediately deployed. You can access the Struts documentation at the URL http://localhost:8080/struts-documentation. You should also download the Struts 1.1 source and refer to it and probably study it to get more insights about its internals.


Struts Home | All Struts Tutorials | Latest Struts Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Emiley J
Password must include both numeric and alphabetic characters - Magento
What is Hadoop?
Returning multiple values from a web service
Tomcat and httpd configured in port 8080 and 80
Java Webservices using Netbeans and Tomcat
Java WebService connected to Database
How to Deploy a Java Web Service
Call a webservice in Java
Java WebService - Create your first web service in Java
package javax.jws does not exist
Getting Started with Android
HTML5 Location - getCurrentPosition() in HTML5
HTML5 Canvas - Using Canvas in HTML5
HTML5 - Introduction
HTML5 Video - Handling video in HTML5

More Tutorials in Struts
Configuring JDBC DataSources in Struts
Struts Classes
FAQ: Why was reload removed from Struts (since 1.1)?
FAQ: Why are my checkboxes not being set from ON to OFF?
Using JavaScript to submit a form in Struts
How to prepopulate a form in Struts
Simple example of using the requiredif Validator rule in Struts
Chaining actions in Struts
When is the best time to validate input in Struts
What is a Plug-in and how to use Java plug-ins with Struts?
7 Best Practices of Struts
Origin and Architecture of Struts
ActionErrors and ActionError in Struts
Tutorial on Struts Configuration File - struts-config.xml in Struts - from the book: Struts Survival Guide. Basics to Best Practices
Handling multiple buttons in HTML Form in Struts

More Latest News
Most Viewed Articles (in Struts )
Tutorial on Struts Configuration File - struts-config.xml in Struts - from the book: Struts Survival Guide. Basics to Best Practices
What is Struts? Which Version of Struts to use?
Struts 1 vs Struts 2
Using JavaScript to submit a form in Struts
Configuring JDBC DataSources in Struts
MVC Architecture (Model 2 Architecture)
Installing and configuring Tomcat and Struts
How to prepopulate a form in Struts
Handling Duplicate Form Submissions in Struts
Model 1 Architecture
ForwardAction in Struts
7 Best Practices of Struts
What is a Plug-in and how to use Java plug-ins with Struts?
History of Struts
Struts and Tiles - Steps to use Struts and Tiles
Most Emailed Articles (in Struts)
Downloading and installing Struts
The directories and files of a Struts application
What is Struts? Which Version of Struts to use?
WebWork 2 is now Apache Struts 2
ForwardAction in Struts
Origin and Architecture of Struts
Simple example of using the requiredif Validator rule in Struts
Is Struts the most popular web application framework for Java?
What is a Model View Controller (MVC) Model?
History of Struts
Configuring JDBC DataSources in Struts
Struts Classes
Editing web.xml in a Struts Application
Editing struts-config.xml in a Struts Application
Creating the first application using Struts 2