What is the difference between servlet config and servlet
context.
Answer Posted / suresh g
Servlet Context:
Servlet context is communication
between server side .Every application has only one
servlet context and is accessible to all action
resource of that application.
Serclet Config:
Servlet Config is objcet created after
a servlet is instantiation and its default constructor
is read .It is create to pass initialization
information the servlet.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the various ways of session supervision in servlets?
Define declaration.
What is the use of servlet context?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What is the procedure for initializing a servlet?
Explain the custom jsp tags and the beans.
Tell us something about servletcontext interface.
How can I send user authentication information while making URL Connection?
What is generic servlet class?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
Why is init() method is used in servlets?
What is the difference between the http servlet and generic servlet?
Explain session tracking and its importance?
What if we pass negative value in load-on-startup?
Is servlet synchronized?