• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic forward to different pages from ActionClass

 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Junilu Lacar
Bartender
Pie
Posts: 7796
62
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic