Ques 1: How can you access using Servet-Name? Ques 2 : when i define proper servlet-mapping, then i can access it using url-pattern but when i print all the init ariables (not in above code) the output comes as : fork : false xpoweredBy : false <Now proper init varaibles > ? Why extra parms : fork and xpoweredBy ?
and you are using link <a href="http://localhost:8080/chapter11/<i rel="nofollow">servlet/InitTestServlet</i>" target="_blank">http://localhost:8080/chapter11/servlet/InitTestServlet to invoke the JSP. Thus you are not accessing your JSP with the value of <servlet-name> but with the name in <url-pattern>.
Joined: Feb 27, 2006
what i am trying to say is :
Suppose i have only defined <servlet> element in web.xml & not <servlet-mapping> as in :