Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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…
This video teaches viewers about errors in exception handling.
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.

809 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