Servlet servlet mapping - Define servlet mapping.

Define servlet mapping.

- 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 without changing the URLs.
What is Java Servlet?
A servlet is a java class / a program that is a server side component and runs in web container.....
Explain the life cycle of Servlet, i.e. Instantiation, Initialization, Service, Destroy, Unavailable
The life cycle is managed by the Servlet container in which the servlet is deployed...
Explain the purpose of Servlet interface
The javax.servlet.HttpServlet / javax.servlet.Servlet is the interface that is to be implemented by all the servlets....
Post your comment