File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: action mapping
 
Similar Threads
Post - login processing
"STRUTS-like action"
nice way for Handling session timeouts
STRUTS - Remebering page access after login
Logging in to a site programmatically