<div dir="ltr" style="text-align: justify;">
<p>You can proceed to setup your <b>Struts 2 framework</b>. Following are the simple steps to download and install Struts2 on your machine.</p>
<p><b>Step 1: </b></p>
<ul>
<li>Make a choice whether you want to <b>install Struts2 on Windows, or Unix</b> and then proceed to the next step to <b>download .zip file for windows and .tz file for Unix</b>.</li>
<li>Download the latest version of<b> Struts2 binaries</b> from <a href="http://struts.apache.org/download.cgi" target="_blank" rel="noopener"><i><b>http://struts.apache.org/download.cgi</b></i></a>.</li>
<li>At the time of writing this tutorial, I downloaded <i><b>struts-2.3.15-all.zip</b></i> and when you unzip the downloaded file it will give you directory structure inside <b>D:personal dataStruts 2 videostruts-2.3.15</b> as follows.</li>
</ul>
<div id="ads-id" align="center"></div>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/07/struts2dir.png" border="0" /></div>
<p><b><br />
</b> <b>Step 2:</b> Second step is to extract the zip file in any location, I downloaded &; extracted <i><b>struts-2.3.15-all.zip</b></i> in <i><b>D:personal dataStruts 2 video </b></i> folder on my Windows 7 machine so that I have all the jar files into <i><b>D:personal dataStruts 2 videostruts-2.3.15lib</b></i>. Make sure you set your CLASSPATH variable properly otherwise you will face problem while running your application.</p>
<p><b>Step 3: </b> Now Open your eclipse environment.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/07/struts2step2.png" border="0" /></div>
<p><b>Step 4: Click on Files->;New->;Other</b></p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/07/struts2step3.png" border="0" /></div>
<p><b>Step 5: Click on web->;Dynamic web project->;next</b></p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/07/struts2step4.png" border="0" /></div>
<p>Write your project Name in the text box. I have written &#8220;<i><b>Strut2MyFirstApp</b></i>&#8221;<br />
Now here, I am assuming you have <b>apache tomcat 7</b> server installed in your machine. If you<br />
have target runtime as none then you can refer configure Apache Tomcat in <b>STS IDE.</b><br />
Now click on Finish button.</p>
<p><b>Step 6: Now go to location where you have download strut2 package and open lib<br />
folder.you can have all jars but for now you can copy following jars</b></p>
<ul>
<li>struts2-core-2.3.15</li>
<li>xwork-core-2.3.15</li>
<li>ognl-3.4</li>
<li>commons-io-2.0.1</li>
<li>commons-fileupload-1.2.2</li>
<li>javassist-3.11.0.GA</li>
<li>freemarker-2.3.18</li>
<li>commons-lang-2.5</li>
<li>commons-logging-1.1.1</li>
<li>commons-logging-api-1.1</li>
<li>struts2-dojo-plugin-2.3.15.jar</li>
</ul>
<p><b>Step 7: Paste all above copied jars to <i>WebRoot->;WEB-INF->;lib</i></b></p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/07/struts2step5.png" border="0" /></div>
<p><b>Step 8: Add all these jars to eclipse build path.</b><br />
<b>Right click on project<i>(Strut2MyFirstApp)->;properties</i></b></p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2013/07/struts2step6.png" border="0" /></div>
<p><b>Step 9: go to <i>project->;WebContent->;WEB-INF->;lib</i> and select all jars then click on ok.</b><br />
<b><br />
</b> <b>Step 10: Click on ok. </b><br />
<b>Now you are done with configuring strut2 in eclipse.You can create your struts 2 project.</b></p>
<p> ;</p>
<div style="background-color: pink; border-width: thin; text-align: center;"><b><;<;<a href="https://dineshonjava.com/architecture-of-struts-2-framework/">Previous</a> <;<; || <a href="https://dineshonjava.com/struts-2-baby-step-to-learn/">Index </a>|| >;>;<a href="https://dineshonjava.com/writing-struts-2-hello-world-application/">Next</a> >;>;</b></div>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/architecture-of-struts-2-framework/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/writing-struts-2-hello-world-application/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '400'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…