What is the difference between servlet config and servlet
context.

Answer Posted / nahim makhani

Servlet context is used for every servlet of package and
servlet config
is used for particular one servlet

Is This Answer Correct ?    5 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we share data using 'getservletcontext ()?

749


How can you use a servlet to generate a plain text instead of html?

859


Can a jsp be called using a servlet?

784


What’s the difference between forward() and sendredirect() methods?

778


What do you mean by request dispatcher in servlet?

859


how the HTML data stored in web server?

2196


What is the directory structure of web application?

716


Why is http protocol called as a stateless protocol?

734


Why do we need a constructor in a servlet if we use the init method?

735


What is the dispatcher servlet?

723


What is cookie in servlet?

775


What do you mean by scope object and what are its types?

783


What is servlet instance?

754


What is servlet mapping?

760


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

843