Define servlet mapping.
Answer
Servlet mapping controls how you access a servlet. It is recommended
that you don’t use absolute URLs. Instead usage of relative URLs should be
done.
If you try to deploy the application with a different context root, you might
have to change all the urls used in all the JSP programs. Relative URLs is the
solution so that you can deploy your application with different context root
with out changing the URLs.
|
More Servlets links
Answer - Yes, it is possible to have a constructor for a
servlet.......
Answer - doGet() and doPost() are HTTP requests handled
by servlet classes..........
Answer - getSession(true) will check whether a session
already exists for the user..........
|
|