Forum Moderators: phranque

Message Too Old, No Replies

redirection and java

want info on SSL and browser redirection in java

         

subir

2:21 pm on Jul 10, 2003 (gmt 0)

10+ Year Member



hi,
i have written a java program that gives a URL as an output.I now need to do the following
1.On completion of the program i want to be redirected to the page that the URL of my program points to automatically.I'm using IE6.0/Netscape.

2.I tried using JEditorPane but the page wasnt displayed properly.Is there a workaround?

txbakers

2:11 am on Jul 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Once you have your new URL here is the java command to move to it:

response.sendRedirect(response.encodeRedirectURL("success.jsp"));

subir

2:35 pm on Jul 11, 2003 (gmt 0)

10+ Year Member



hi,
i am on the client side and i need to open a new browser(IE/Netscape) window with the URL that i have constructed in my program,i know how to get the response etc,opening a new browser window with the URL is the prob here.

txbakers

4:50 pm on Jul 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You want javascript then, not Java. Two different languages.

there are excellent javascript tutorials available at www.w3schools.com.

To open a new window in javascript you use the window.open command (which opens a new window) or the location.href command which redirects to a new location.