Struts 2 Environment Setup

Download Struts 2

Download the latest version of Struts 2 from the following link : http://struts.apache.org/download.cgi.

I’ve downloaded Struts 2.3.16 when I wrote this tutorial.

Download zip formatted file and ensure following folder structure is present after extracting the zip file.

Struts 2.3.4 Folder Structure

Struts 2.3.4 Folder Structure

Install Apache Tomcat

Download latest apache tomcat from the following location : http://tomcat.apache.org/.

Set up the environment variable CATALINA_HOME.

Windows

Set up the environment variable by right clicking My Computer > Properties > Advanced > Environment Variables > System Variables > New.

Set CATALINA_HOME in windows

Set CATALINA_HOME in windows

Also include, CATALINA_HOME in PATH environment variable.

Set CATALINA_HOME in PATH environment variable

Set CATALINA_HOME in PATH environment variable

UNIX

Set up the environment variable using below command:

export CATALINA_HOME="/usr/Apache/Tomcat 5.5"
export PATH = $CATALINA_HOME/bin;$PATH

Install Eclipse IDE

Download latest version of Eclipse-Indigo from the following location: http://www.eclipse.org/downloads/packages/release/indigo/sr2

Set jdk1.6 as default JRE in Eclipse-Indigo by entering JDK1.6 path after clicking Windows > Preferences > Java > Installed JREs.

Platform Requirements

  • Servlet API 2.4
  • JSP API 2.0
  • Java 5

Share This Post

Related Articles

Leave a Reply

© 2017 Techy Diary. All rights reserved.
Powered by Charvi Groups