This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "action mapping" Watch "action mapping" New topic
Author

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

The value of an idea lies in the usage of it.
Rick Hightower
Author
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.

-Afroz
 
jQuery in Action, 2nd edition
 
subject: action mapping