what is the difference between ServletContext and
ServletConfig?

Answer Posted / sunil kumar- vizag

Servlet Context: Servlet Context defines a set of methods
that a servlet uses to communicate with its servlet container.

Servlet Config: A servlet configuration object used by a
servlet container passes information to a servlet during
initialization.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about validation plugin ?

514


What are the core classes of the struts framework?

514


How is forward action used for integration?

572


Why we use struts over servlets?

524


How to handle exceptions in structs?

576






What are the major differences between html tags and strut specific html tags?

517


What configuration files are used in struts?

531


Give an alternative way to protect jsp’s with not much features from direct access.

556


What are the some useful annotations introduced in struts2?

550


What is the purpose of @intrangefieldvalidator annotation?

861


What is the difference between session scope and request scope when saving formbean ?

556


How action mapping is configured in Struts?

572


What is the difference between struts1 and struts2?

517


What do struts do?

521


What is the purpose of action-mappings tag in struct-config.xml?

592