title: Open URL in new window from JSP using set of new window attribute
body: <p>After processing action class, I have dynamic attribute which needs to be append as query string in static URL like <code>"https://www.google.co.in/?zipcode="+zipcode"</code>
  I am done till this point. Then I passed control to JSP with URL in request. Now from JSP I want to open this URL in new window with specific new window attributes.</p>
  
  <p>This is I am trying from my jsp : </p>
  
  <pre><code>&lt;% 
  String redirectURL = (String)request.getAttribute("url2redirect");
  response.sendRedirect(%&gt;&lt;javascript:openNewWindow()&gt;&lt;%
  %&gt;
  &lt;script&gt; 
  function openNewWindow() {
      var screenWidth = screen.width;
      var screenHeight = screen.height;
      var contactUsWidth = screenWidth*90/100;
      var contactUsHeight = screenHeight*90/100;         
  window.open('&lt;%=redirectURL%&gt;','appointment','scrollbars,menubar=no,width='+contactUsWidth+',height='+contactUsHeight+',resizable=no,toolbar=no,location=no,status=no,copyhistory=yes,left=0,top=0,screenX=0,screenY=0');
  
  }
  &lt;/script&gt;&lt;%);%&gt;
  </code></pre>
  
  <p>Its not working giving syntax error.... Is this the right way ?
  How can we open this URL in new window with different window attribute.</p>