What is the difference between context parameter and context attribute?



What is the difference between context parameter and context attribute?..

Answer / Brajmohan Kumar

A Context Parameter is a configuration setting for a web application which can be accessed by all servlets within that application. A Context Attribute, on the other hand, is a dynamic value set during runtime which can be used by specific servlets.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

What do you mean by singlethreadmodel interface?

1 Answers  


Which httpsession object is used to view and manipulate information about a session?

1 Answers  


Can we override servlet service method?

1 Answers  


What is the use of httpservletresponsewrapper?

1 Answers  


List out the difference between ServletConfig and ServletContext?

1 Answers  


What are the types of Session Tracking ?

1 Answers  


What is cookie in servlet?

1 Answers  


What do you mean by web applications?

1 Answers  


How many Cookies can a host support?

2 Answers  


Why HttpServlet class is declared abstract?

1 Answers  


Write a hello world program using servlets.

1 Answers  


Tell us something about servletconfig interface.

1 Answers  


Categories