• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

dynamic forward to different pages from ActionClass

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 17734
302
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic