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



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Whne i run this code ,it does not return any ports
View Tutorial          By: amit at 2009-06-10 02:11:13

2. Excelent sample, I'm disagree with Anon, the sampl
View Tutorial          By: Gerardo Saldívar at 2009-09-21 15:25:01

3. is good bot not full
View Tutorial          By: amin parishani iran at 2010-07-07 10:51:33

4. Basic Example to undestand java literal persons
View Tutorial          By: Sajid mestri (maha,sangli) at 2010-10-30 00:44:44

5. I am getting following error, I am using samsung m
View Tutorial          By: Ashok at 2013-08-17 05:29:02

6. Nice for java examples, it is easy to understand j
View Tutorial          By: Nirmaladevi.T at 2009-06-19 04:42:51

7. help me for this nested for loops
2 3 4 5
View Tutorial          By: nadzirah at 2012-10-12 15:33:20

8. Many thanks. I had that problem and your code solv
View Tutorial          By: Gianni at 2009-05-06 10:02:14

9. its easy to understand the complete history of jav
View Tutorial          By: Arun Tony at 2011-04-10 07:12:04

10. hi friends i hav project work in this topic so pls
View Tutorial          By: sullan at 2011-05-08 12:08:56