• Post Reply Bookmark Topic Watch Topic
  • New Topic

Last time accessed tab activation  RSS feed

 
Arvind Porlekar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

following is requirement.
After login we have two tab 1. Password1 2. Password2
1. If user accessed Password1 tab for login then application should show Password1 tab activated in second time login
2. If user accessed password2 tab for login then application should show Password2 tab activated in second time login

Can any one help me to do it in jsp?

Cookie is not good option as we need to store User details on client.

Best Regards
Arvind
 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are these tabs part of the same JSP page? I mean are you creating these tabs using JavaScript? You can store such things (similar to user preferences) on your server and when user logs in set these preferences in user's session based on his login id. Whether you store these preferences in database or somewhere else is your choice...
 
Arvind Porlekar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

The tab are on same JSP, not using any Script to create tab.

I want to just implement the logic to remember the last time accessed tab.
Yes, Storing the User Preferences is good option, but our application makes service call to get user details or to save details.

Any other option ?

Can we do it by using IP of User system? but problem is we have IP then we have store the details to somewhere.

Best Regads
Arvind Porlekar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!