wood burning stoves 2.0*
The moose likes Servlets and the fly likes web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xml" Watch "web.xml" New topic
Author

web.xml

santhosh.R gowda
Ranch Hand

Joined: Apr 06, 2009
Posts: 296
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
im new to servlets and in my web.xml file they ahd written as the above code please tell me why they had written like that ....


Creativity is nothing but Breaking Rules
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
can you put more web.xml?


Thanks,
Shailesh
santhosh.R gowda
Ranch Hand

Joined: Apr 06, 2009
Posts: 296
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
which web.xml you are seeing ?
I guess you are using tomcat & seeing tomcat's web.xml.
while developing application we don't need to care about tomcat's web.xml.we will write our own web.xml.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Well, web.xml is something used to tell the web container about your web application's components and how those should be configured (how the servlets are packaged, which listeners are there and lot more). You may refer the Servlet Faq and there you 'll find Tomcat specific faq as well.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Hi,

May be this will help you to understand web.xml configuration.

http://nishanpatel.wordpress.com/2009/04/30/deploymentdescriptor/




Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: web.xml
 
Similar Threads
problem in running servlet
Making my own servlet (for the first time...)
How to pass a session from a class to another class
Servlet's web.xml
Tomcat container not working