Hi, I am trying to open a new page in jsp using response.sendRedirect('url') As, the url should be opened in a diffrent browser, in jsp I have used some javascript which takes the url and opens in a new browser. But, response.sendRedirect("javascript:windowOpen('url');") is showing an error page. Would some one suggest me how to open a new page in a new window from jsp. Thanks, Deep.
The Javascript only acts if placed within the CALLED url. In the CALLING JSP: <% url = url+"#popup; // indicate a pop-up (new) window is needed response.sendRedirect(url); %> In the CALLED JSP, make sure this code is present: <script> if (window.location.hash=="#popup") window.open(window.location) </script>
Mark
Danger, 10,000 volts, very electic .... tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth