Solved

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

Posted on 2007-03-18
2
203 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

How our DevOps Teams Maximize Uptime

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

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java class and jar 3 41
passing enum to a method 4 34
How to set share permission on folders - Everyone Permission 20 48
Java array 21 76
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

679 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