File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Return to previous page after login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Return to previous page after login" Watch "Return to previous page after login" New topic

Return to previous page after login

Jim Stewart

Joined: Jan 02, 2003
Posts: 3
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.

SCJP 1.4, SCWCD 1.4
Ann Maria

Joined: Sep 09, 2005
Posts: 27
If you want to do some action and return to the current action you can use
I agree. Here's the link:
subject: Return to previous page after login
It's not a secret anymore!