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 dynamic forward to different pages from ActionClass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamic forward to different pages from ActionClass" Watch "dynamic forward to different pages from ActionClass" New topic
Author

dynamic forward to different pages from ActionClass

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
Hi,
I am working on an application and have a following
requirement,
I have a servlet filter which checks if the user is
logged in or not for each request, if the user is not
logged on, then this servlet stores the request in
session, (i.e the page which send the request and the
request parameters ) and then forwards the request to
signon page,
When the user signon using user id password, i call
LoginAction.do, now in this action class , i want to
forward the request to the page from where it came,( i
have this info in session)
how can i do it, this must be dynamic
Ashish


A$HI$H
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4456
    
    6

why don't you use container managed security? It does all this for you. All you need to do is add the proper elements in your web.xml
See http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security5.html


Junilu - [How to Ask Questions] [How to Answer Questions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic forward to different pages from ActionClass