I just started basic servlet programming. i am using tomcat and eclipse indigo.
I have created a dynamic web project and added a new servlet with name NewServlet to the project and copied the servlet-api.jar to the lib in the WEB-INF folder. and created a an html file named c.html in the WEB-INF folder. I have edited the web.xml and made the welcome file value c.html. now when i run using run on server option, the c.html file is not getting displayed the url is http://localhost:8080/p3/NewServlet. what might be the mistake?
on job hunt
Joined: Mar 22, 2005
and created a an html file named c.html in the WEB-INF folder.
That's your problem - nothing that is inside WEB-INF will ever be served to the client directly. You need to move the file one directory level up (which is the root of web app's directory hierarchy).