I added the following in my javascript function, but i'm surprised that the <%= %>
for only the wanted param doesn't  work !
<%
out.println("window.open('"+response.encodeURL("/AppArom/CreateArom.jsp")+"?type=class','','resizable,status,height='+screenH+',width='+screenW+',scrollbar=yes')");
%>

    Hope this help
Regards
Veronique

Caspar van Vroonhoven a écrit :

> Hey everyone,
>
> I've got a little question about using Javascript and JSP together..:
>
> How can I include parameters (..<here he goes again :-)>..) in a window
> constructed by window.open in javascript...
> This particular parameter is requested at the page where the javascript is,
> so the real question is how to get a JSP string into a javascript one, so
> that it can be put in my statement (if at all possible) like this:
>
>  var cCW = window.open("/addinfo/currency.html?price=" + string +
> ","currencyConverter","HEIGHT=400,WIDTH=400");
>
> where the string is supplied by jsp..
> copying the whole <%= ..... %> thing doesn't work, I already tried that..
>
> TIA,
>
> Caspar van Vroonhoven
> www.tradingcars.com
> Amsterdam, The Netherlands
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to