What is Servlet Context?

Answer Posted / gaurav agrawal

ServletContext is the interface by which we can get the
information of the web container.this interface has some
methods by which we can get information

Is This Answer Correct ?    12 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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 >>

2715


What is servlet and its life cycle?

812


What is the procedure of invoking different servlet in a different application?

761


What is cookie in servlet?

774


Why is http protocol called as a stateless protocol?

729


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

816


How httpservlet is different from the genericservlet?

782


Is that servlet is pure java object or not?

808


Define the life cycle of a servlets.

782


What are different Authentication options available in Servlets.

771


What methods do you use in servlet - applet communication?

789


What mechanisms are used by a Servlet Container to maintain session information?

884


How do we share data using 'getservletcontext ()?

741


Can we use threads in Servlets?

833


How is an application exception handling is done using a servlet?

742