Programming Tutorials

Comment on Tutorial - Creating the first application using Struts 2 By Gokul Verma



Comment Added by : Pavan Barot

Comment Added at : 2010-07-11 23:32:35

Comment on Tutorial : Creating the first application using Struts 2 By Gokul Verma
/*Web.xml File */

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"

&#160;&#160;&#160; xmlns=&quot;<a href="http://java.sun.com/xml/ns/j2ee&quot;">http://java.sun.com/xml/ns/j2ee&quot;</a>

&#160;&#160;&#160; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance&quot;">http://www.w3.org/2001/XMLSchema-instance&quot;</a>

&#160;&#160;&#160; xsi:schemaLocation=&quot;<a href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</a>

<a href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;</a>&gt;

&#160;&#160;&#160; &lt;display-name&gt;Struts2 : Hello World&lt;/display-name&gt;

&#160;&#160;&#160; &lt;filter&gt;

&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;filter-name&gt;struts2&lt;/filter-name&gt;

&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;filter-class&gt;org.apache.struts2.dispatcher.FilterDispatcher&lt;/filter-class&gt;

&#160;&#160;&#160; &lt;/filter&gt;

&#160;&#160;&#160; &lt;filter-mapping&gt;

&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;filter-name&gt;struts2&lt;/filter-name&gt;

&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;url-pattern&gt;/*&lt;/url-pattern&gt;

&#160;&#160;&#160; &lt;/filter-mapping&gt;

&#160; &lt;welcome-file-list&gt;

&#160;&#160;&#160; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;

&#160; &lt;/welcome-file-list&gt;

&lt;/web-app&gt;


View Tutorial