Skip to main content

Redirecting to a page after Java Installation

4 replies [Last post]
rapodaca
Offline
Joined: 2008-02-16
Points: 0

Greetings,

I'm running a site that redirects IE users who don't have Java installed to the Sun automatic Java installer page:

http://java.com/en/download/windows_ie.jsp

After Java is installed, I want users to be redirected to the page on my site where they came from - so that they can continue with my application.

I'm using the deploy.js scripts from the Java Deployment Toolkit:

https://jdk6.dev.java.net/testDT.html

The installLatestJRE function adds a parameter, "returnPage", to the automatic Java install URL that implies that this redirect capability can work. The URL has this format:

http://java.com/en/download/windows_ie.jsp?host=java.com&returnPage=http...

The problem is that after multiple tests, I can't get the returnPage request to be honored. I always get redirected to the Sun test java page instead.

So... does anybody know how to get Sun's Automatic Java install page to redirect back to an originating page?

Many Thanks,
Rich

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
demonduck
Offline
Joined: 2008-03-14
Points: 0

> What about just using a popup?
>
> a JS function similar to:
> function popup(url){
> newwindow=window.open(url,'name');
> if (window.focus) {newwindow.focus()}
> return false;
> }
>
>
> It might be too old school I suppose, but I'm a big
> fan of keeping things simple.

I'm confused and not a very good JavaScript programmer -- but I use something similar and have my browsers set to block popups but this always works. So the browser doesn't appear to block opening a new window using window.open.

Is this really a popup?

lehrian
Offline
Joined: 2008-01-07
Points: 0

I am having the exact same issue. The documentation implies that it will redirect back to the originating URL. Have you found a solution?

swb311
Offline
Joined: 2008-03-05
Points: 0

What about just using a popup?

a JS function similar to:
function popup(url){
newwindow=window.open(url,'name');
if (window.focus) {newwindow.focus()}
return false;
}

It might be too old school I suppose, but I'm a big fan of keeping things simple.

gmpassos
Offline
Joined: 2008-04-05
Points: 0

Bad idea. A popup will be blocked by any modern browser or anti-virus! In other words, for most users a popup won't work.