This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

action mapping

 
Afroz Ahmed
Ranch Hand
Posts: 64
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic