Answer Posted / gaurav agrawal
ServletContext is the interface by which we can get the
information of the web container.this interface has some
methods by which we can get information
| Is This Answer Correct ? | 12 Yes | 12 No |
Post New Answer View All Answers
What is meant by servlet? What are the parameters of the service method?
What are some advantages of storing session state in cookies?
What are different ways for authentication of servlet?
Can we use the constructor, instead of init(), to initialize servlet?
Explain servlet life cycle?
How can we refresh automatically when new data is entered into the database?
What is called servlet mapping?
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 do we have servlet filters?
How can you create a session in servlet?
What are the uses of servlets?
How to notify an object in session when session is invalidated or timed-out?
What is the procedure for initializing a servlet?
What do you mean by url pattern in servlet?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?