Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

action mapping

 
Afroz Ahmed
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
Iam new here, need some help...
Iam using customised action mapping to check whether the user is
logged in when an action is requested to perform.
So when the user is not logged in, the control goes to login page.
From that page i want to go back to the originally requested action to perform,when the user is successfully login through the login page.
Thanks very much in advance.
-Afroz
[ January 18, 2004: Message edited by: Mohd Afroz Ahmed ]
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should not be a problem. Can't you just store the request path of the incoming request, and then just go back to that page? Store it in session scope.
I've done this before with and without Struts. It was fairly easy.
Also, if you are using J2EE security. This is the default behavior supported by the container.
 
Afroz Ahmed
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mr.Hightower,
I was doing it,just the way you had told me.But i thought there is a better way around available in almighty struts.
Thanks any way.

-Afroz
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic