How do you track a user session in servlets?

Answer Posted / udayc how

1)user authentication
2)hidden form fields
3)cookies
4)url rewriting
5)httpsession

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a servlet be used to generate plain text instead of html?

543


What is a web container and what is its responsibility?

527


How can I send user authentication information while making URL Connection?

543


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!

1831


Is that servlet is pure java object or not?

640






Which is the methods of generated servlet?

678


Which http method is said to be non-idempotent and idempotent?

604


What are the kinds of http requests?

609


Explain is servlet mapping?

578


How will two or three servlets interact or communicate with each other?

900


What is the difference between Server and Container?

618


What is servlet invoker?

600


Explain get and post.

649


What is the need of session tracking in web application?

585


What are sessions in servlets?

574