Tomcat – how to deploy a struts2 web application in tomcat? without eclipse? How I should arrange the files in folder

deploymentstruts2tomcattomcat7web-applications

How can i deploy a struts2 web application in tomcat? I want to avoid eclipse from deploying enviorment. How should I arrange the files in project folder?

I downloaded 'Struts2' from Apache struts site, but I don't know how to use them.

My project was created with Eclipse IDE and i am using MySql database and Tomcat server. It can be successfully deployed from that environment. I don't want to use Eclipse IDE in my deployment.

Is there any change in arrangement of files needed when I place my project in
webapps->root folder of tomcat.
If so, please give me the order required.

I downloaded some examples from Apache site and they run if I deploy them from eclipse, but when I place them in tomcat root folder and run, it shows struts2 tags not found..

Best Answer

You have many option for this the best in my opinion is to avoid creating a manual structure for the deployment and let the tools handle this.

best tool for deployment will be Apache maven

all you need to tell maven about your deployment preferences like you want it to war/jar or any other form

Maven will handle all the other details for you.

else download sample application war from Apache strust2 website deploy that war in the tomcat, tomcat will extract the war in to standard directory structure which can always help you to understand the layout.

My bet is to go for maven as its very easy and handy tool for all these processes.

Related Topic