Results 1 to 2 of 2
  1. #1
    sasi.tati is offline Member
    Join Date
    Jul 2010
    Posts
    18
    Rep Power
    0

    Question How to redirect to a specified location from a jsp

    Hi All

    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:

    Java Code:
    <script language="javascript" type="text/javascript">
    			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);
    			</script>
    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.

    can any one guide me to resolve this issue.

    Thanks in advance.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,446
    Rep Power
    18

    Default

    This is a Javascript question, so you might get better results in a Javascript forum.

Similar Threads

  1. need to copy file from one location to another location
    By naveen.dpt2007 in forum New To Java
    Replies: 4
    Last Post: 02-28-2010, 03:53 PM
  2. URL Redirect from one TLD to another
    By R@hul in forum Web Frameworks
    Replies: 0
    Last Post: 12-20-2009, 06:10 AM
  3. Redirect IP to 127.0.0.1?
    By Bill89 in forum Advanced Java
    Replies: 12
    Last Post: 12-13-2009, 11:40 AM
  4. location provider returns no location
    By sandeeprao.techno in forum CLDC and MIDP
    Replies: 0
    Last Post: 09-24-2009, 09:54 AM
  5. How to redirect the output
    By Java Tip in forum java.io
    Replies: 0
    Last Post: 04-04-2008, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •