jsp - In the website design using struts2, when a user login, how to keep user information between different website? -


recently, learning struts 2 , hibernate build small web application. designed login , register page. after user registered, can log in. after user login, welcome page , user can browse other pages. how keep user information among these pages(like showing username above pages time until logs out)?

i learned redirect , dispatcher method in struts 2."dispatcher" lead jsp page(i need jump 1 action action), keep before actions information in stack. "redirect" can lead jsp or action, object information in before action lost.

so in situation, said, should use keep user information showing above pages?

store in session, , on every page retrieve session.

hope helps.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo