how do you maintain sessions in servlets?

Answers were Sorted based on User's Feedback



how do you maintain sessions in servlets?..

Answer / niranjanravi

servlet context

Is This Answer Correct ?    22 Yes 10 No

how do you maintain sessions in servlets?..

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

how do you maintain sessions in servlets?..

Answer / reddy

Using Session Tracking

Is This Answer Correct ?    12 Yes 7 No

how do you maintain sessions in servlets?..

Answer / mahesh

to maintain sessions in servlets we can use another way that
is through........ RequestDispatcher

Is This Answer Correct ?    5 Yes 4 No

how do you maintain sessions in servlets?..

Answer / m.manikandan

Throw the HttpSession

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Servlets Interview Questions

Are Servlets by default thread safe or not? thanks in advance regards Sudhakar

3 Answers  


what is the difference between servlets and struts?

3 Answers  


Differentiate between the get and post method

0 Answers  


Explain how does JSP handle run-time exceptions?

0 Answers   BirlaSoft,


What is the procedure for initializing a servlet?

0 Answers  






What is cookies in servlet with example?

0 Answers  


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!

0 Answers  


Which java framework is most popular?

0 Answers  


what is SSL?

3 Answers  


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

0 Answers  


Why filter is used in servlet?

0 Answers  


Why HttpServlet class is declared abstract?

0 Answers  


Categories