What is the difference between servlet config and servlet
context.
Answer Posted / vijay kaarmani
Both ServletConfig and ServletContext are configuration objects used by servlet container to initialize various init parameters for a web application. However they differ in terms of the scope and availability of init parameters defined by both of them.
Please see http://javashiksha.com/servlet-jsp/difference-between-servlet-config-and-servlet-context.html for more details
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which is better jsp or servlet?
What is context in servlet?
What are the uses of servlet
How do we go with database connection and log4j integration in servlet?
What is servlet in tomcat?
The code in a finally clause will never fail to execute, right?
What is the structure of the http response
What exception should be thrown when servlet is not properly initialized?
Why servlet is used as controller ? Not JSP? I want complete explation?
Explain the role of dispatcherservlet and contextloaderlistener.
What is new in ServletRequest interface ? (Servlet 2.4)
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 >>
Explain the steps involved in placing a servlet within a package?
How to commuincate between an applet and a servlet?
What’s the difference between sendredirect and forward methods