• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Return to previous page after login

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a conceptual question.
Regretfully my struts experiences are limited to what I have learned from a couple of books, but I find myself stuck with this conceptual problem.

Say for instance I'm trying to add a new customer, before adding the customer I need to be 'logged in' (assume I was logged in originally, but the session has timed out), I know how to forward to a login page, what i don't understand is having logged in, how do I get back to my add new customer page. If you assume the login page will be called from many different pages, how to I tell it what page to go to after loggin in?

I know how to get back to a specific page, eg Welcome page

Am I thinking about this the correct way?

Your guidance and advise appreciated.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to do some action and return to the current action you can use
mappimg.getInputForward().
 
reply
    Bookmark Topic Watch Topic
  • New Topic