You probably need to familiarize yourself with concepts of servlet and
context. 

Please read servlet specification (at least "Overview" chapter) and tomcat
context manual http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

Try to write and deploy simple servlet then that does nothing but writes
"hello" to the output. After success you may get back to struts. 



Ilya Kazakevich,
Developer
JetBrains Inc
http://www.jetbrains.com
"Develop with pleasure!"

-----Original Message-----
From: Praveen Jain [mailto:jain_praveen_mail...@yahoo.com] 
Sent: Sunday, November 13, 2011 9:51 PM
To: Struts Users Mailing List
Subject: RE: provide Helloworld application in Struts2.0

 
HelloWorldStruts2
 is the name of the project made in Eclipse and its web.xml is as under
mentioned 


 <?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

        <display-name>HelloWorldStruts2</display-name>
        <welcome-file-list>
                <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
        <filter>
                <filter-name>Struts2</filter-name>
        
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        </filter>
        
        <filter-mapping>
                                        <filter-name>Struts2</filter-name>
                                        <url-pattern>/*</url-pattern>
        
        </filter-mapping>

</web-app>


ThanksPraveen Jain 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to