Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Applets and the fly likes Redirecting to the user's home page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Redirecting to the user Watch "Redirecting to the user New topic
Author

Redirecting to the user's home page

Pranay Narotam
Greenhorn

Joined: Oct 08, 2008
Posts: 23
Hi all

I have an applet, and it consist of an EXIT button which closes the applet.
Once the user clicks on the EXIT button, I would like to redirect to the user's
homepage or to a blank screen. I do not want to create this blank screen using HTML.

Thanks for your help

Pranay


I AM A HUMAN BEING
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8441

Why are you calling exit in an applet? That is contrary to the user web experience. A more appropriate thing to do would be to "logout" the user.
Check out AppletContext#showDocument() method(s) on how to display a particular page from an applet.


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Redirecting to the user's home page
 
Similar Threads
How to make applet fit any screen
applets
Can I call System.exit() from an applet ? If so, how ?
how to see button in an applet ?
Applet not working...