how do you maintain sessions in servlets?
Answers were Sorted based on User's Feedback
Answer / bibek
for mentaining session there are four ways
1 hidden field
2 url re-writting
3 coockis
4 session
Is This Answer Correct ? | 14 Yes | 5 No |
Answer / mahesh
to maintain sessions in servlets we can use another way that
is through........ RequestDispatcher
Is This Answer Correct ? | 5 Yes | 4 No |
Are Servlets by default thread safe or not? thanks in advance regards Sudhakar
what is the difference between servlets and struts?
Differentiate between the get and post method
Explain how does JSP handle run-time exceptions?
What is the procedure for initializing a servlet?
What is cookies in servlet with example?
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!
Which java framework is most popular?
what is SSL?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Why filter is used in servlet?
Why HttpServlet class is declared abstract?