Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven project error 5 48
custom annotations 9 32
Need script to search multiple files in one drive 13 35
Opening PDF on button click and fill new document 2 19
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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…
The viewer will learn how to dynamically set the form action using jQuery.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

920 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