This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes Calling one page to another - login to welcome page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Calling one page to another - login to welcome page" Watch "Calling one page to another - login to welcome page" New topic
Author

Calling one page to another - login to welcome page

Al Kaiser
Ranch Hand

Joined: Nov 20, 2003
Posts: 35
I have a login application and a seperate application which has welcome page. Is there a mechanism utilizes calling one application to another so that after my login is successful, it goes to the welcome page of another application. I know pagecontext probably connects one page to another, but, is there a better option?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

I know pagecontext probably connects one page to another

?
In any case, what you probably want to do is to perform a redirect to the appropriate URL in the other application.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
Use response.sendRedirect(URL) is safe and simple.
If you wanna make cross-application access, it will cause a lot of
security problems.
If you wanna show the user name on the welcome page, just append that data at the URL.
Hope it helps.
 
GeeCON Prague 2014
 
subject: Calling one page to another - login to welcome page