What is the difference between servlet config and servlet
context.
Answer Posted / khushbu ajmera
A: ServletContext: Defines a set of methods that a servlet
uses to communicate with its servlet container, for example,
to get the MIME type of a file, dispatch requests, or write
to a log file.The ServletContext object is contained within
the ServletConfig object, which the Web server provides the
servlet when the servlet is initialized
ServletConfig: The object created after a servlet is
instantiated and its default constructor is read. It is
created to pass initialization information to the servlet.
Is This Answer Correct ? | 13 Yes | 7 No |
Post New Answer View All Answers
How do you invoke a servelt?
Explain load on start-up and its importance?
Explain the working of service() method of a servlet.
Which is the methods of generated servlet?
how the HTML data stored in web server?
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 >>
Describe in brief RequestDespatcher?
What is load-on-startup in servlet?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is pure servlet?
Why servlet is mostly used?
Difference between get and post in java servlets?
What do you mean by request dispatcher in servlet?
What are the difference between session and cookies in servlet? Explain
Differentiate between get and post?