now the servlet(with the codegiven by you,rest commented) is working by typing http://localhost:8080/examples/servlet/ListManagerServlet
in the browser.i am usin Tomact as my servlet container
i added the following lines to the web.xml
and the ouput is
Servlet init parameters:
forum = ServletsAndJsp
name = preethi
addressfile = address.txt
there are few queries regarding this
1)why are parameters printed in a different sequence?
2)why are other servlets (not involving init parameters)are running successfully even when i am not touching the already existing web.xml(no new <servlet> tag added neither a <servlet-mapping> tag)?
3)the above code does not work if i omit giving a <servlet-name> tag or <servlet-mapping> i.e i tried it with just the init params in <servlet>(didn't work)??
4)where does the directory "servlets" under examples dir mapped for "servlet" in the path for any such servlet to be executed in case of tomcat??
Hope u read this all,i know it has gone a bit too lengthy.