This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes action mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "action mapping" Watch "action mapping" New topic

action mapping

Afroz Ahmed
Ranch Hand

Joined: Jan 18, 2004
Posts: 64
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.
[ January 18, 2004: Message edited by: Mohd Afroz Ahmed ]

The value of an idea lies in the usage of it.
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
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.

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
Afroz Ahmed
Ranch Hand

Joined: Jan 18, 2004
Posts: 64
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.

I agree. Here's the link:
subject: action mapping
It's not a secret anymore!