javascript window.open function
<p>I am trying to integrate paypal in a web site. For that paypal provides the JSP source code that the programers can use to listen to paypal IPN events, once you receive a IPN event, you do wathever you want with the information. In my case, what I am trying to do is just to insert a new js line to redirect the IPN information to a new webpage as shown shown next,</p>

<p><code>&lt;%@ page import= "java.util.*" %@&gt;</code><br>
<code>&lt;%@ page import= "java.net.*" %@&gt;</code><br>
<code>&lt;%@ page import= "javax.net.ssl.*" %@&gt;</code><br>
<code>&lt;%@ page import= "java.io.*" %@&gt;</code></p>

<p><code>&lt;%@</code><br>
<code>... paypal js source code</code><br>
<code>window.open("http://somesite.com?IPN_INFO"); // &lt;--- new line inserted</code><br>
<code>... paypal js source code</code><br>
<code>%@&gt;</code><br></p>

<p>Problem is, whatever way I use to call the function "window.open", the tomcat server always responds back with the next error:</p>

<p><code>...</code><br>
<code>The method window.open(String) is undefined for the type paypal_005fipn_jsp</code><br>
<code>62:                  String url = &amp;quot;http://192.168.1.85:80?IPN_INFO&amp;quot;;</code><br>
<code>63:                  window.open(url);</code><br>
<code>...</code><br></p>

<p>I reallly would appreciate any feedback on this.</p>
