How to redirect to a specified location from a jsp
I am new to JSP, i am facing a problem related with JRE, i am able to find the current jre available in a PC and then i have to compare with my jre version if it is not the same then i have to prompt them version is not sufficient download 6u18 to access my appliction. Now how can i redirect to a specified location means where i have to place my jre (means i am using JBoss, here where i have to place) and how to direct to that location. I am able to redirect to a specified URL using the below code:
Right now i am using like this:
but that is not the exact requirement for me, it should go to the specified location and it should either download/install that jre. even i tried with window.location that is not working properly.
alert('Existing Java version is not compatible u have to download the new Version.');
setTimeout("location.href = 'https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jre-6u18-oth-JPR@CDS-CDS_Developer';",10);
can any one guide me to resolve this issue.
Thanks in advance.