Solved

Java class file that when ran redirects to another page specified by a param

Posted on 2007-03-18
2
201 Views
Last Modified: 2010-04-16
I am looking for a Java Class file, that when ran, it simply redirects to a new page. This new page is set in the html code via a param. Can someone help me in making this, I am not knowledgable in java. I am making this to detect if the user has java installed.
0
Comment
Question by:cwitr329
2 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18745260
You've posted this under Scripting. Do you want to do this in a web app? If so, you need to use JSP for doing this and the user need not have Java installed on his system for the same.... unless you are using an Applet
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 18745280
would just need something like:

public class RedirectApplet extends Applet
{
   public void start()
   {
      getAppletContext().showDocument(newURL("http://www.objects.com.au"));
   }
}
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question