The Artima Developer Community
Sponsored Link

Java Answers Forum
how do i redirect to a diff url from the applet

1 reply on 1 page. Most recent reply: Apr 25, 2003 5:48 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Ajay

Posts: 8
Nickname: aju
Registered: Apr, 2003

how do i redirect to a diff url from the applet Posted: Apr 24, 2003 8:08 AM
Reply to this message Reply
Advertisement
Hi there,
Can anybody have ans how to make a redirection to a different URL from a Applet.
I need get a sample code if anybody can provide that would really appreciable
thanks n regds


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: how do i redirect to a diff url from the applet Posted: Apr 25, 2003 5:48 PM
Reply to this message Reply
try{
   URL url = new URL("http://www.artima.com/");
   getAppletContext().showDocument(url);
}catch(MalformedURLException murle){
   System.err.println("MalformedURLException: " + murle.getMessage());
}
 

Flat View: This topic has 1 reply on 1 page
Topic: lang design question Previous Topic   Next Topic Topic: Creating a new instance of a class

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use