Solved

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

Posted on 2007-03-18
2
199 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:mayankeagle
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to count occurrences of each item in an array.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now