Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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: 61653
    
  67

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling one page to another - login to welcome page