What is the difference between servlet config and servlet
context.
Answer Posted / m.sridharreddy
Servlet context is a context for all servlets under the web
application.in the web application there is only one
context.and all the servlets communicate each other through
context and it uses context parameters
In the web application each servlet have one servlet config
object it uses init parameters.
| Is This Answer Correct ? | 41 Yes | 12 No |
Post New Answer View All Answers
Why jsp is better than servlet?
What are the phases of servlet life cycle?
How we can create war file in servlet?
What is the structure of the http response
What are common tasks performed by Servlet Container?
Differentiate between the get and post method
Explain servlet events?
What is a deployment descriptor?
What is difference between PrintWriter and ServletOutputStream?
What is the difference between Servlets and Applets?
What is meant by a web application
What is the major difference between servlet and applet?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
Elucidate servlet attributes and its scope?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?