what is the difference between ServletContext and
ServletConfig

Answer Posted / saurabh kandpal

servletcontext is for a individual servlet

servlet config is for the whole webapplication which may
include diffrent servlet context

Is This Answer Correct ?    3 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When jsessionid is created?

817


Is it possible to have a constructor inside the servlet?

773


Difference between doget and dopost?

934


What do you mean by chaining in servlet?

816


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3148


List out the difference between ServletConfig and ServletContext?

817


How do you communicate in between Applets and Servlets?

843


What is a servlet?

880


what is multiple server?

2017


What is the difference between jsp and servlet life cycle?

984


What are the advantages of Servlet over CGI?

890


What do you mean by default initialization in java servlet?

902


What is difference between PrintWriter and ServletOutputStream?

1024


What is servlet and how it works?

725


How forward () method is different from send redirect () method?

754