window.open(<%=forwardURL%>);
or
define a javascript variable:

var strForwardURL;
window.open(strForwardURL);

And assign it later in the code.
strForwardURL = <%=forwardURL%>;

> -----Original Message-----
> From: Kevin Citron [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 3:13 PM
> To: [EMAIL PROTECTED]
> Subject: << Passing JSP Variables to Java Script !!>>
>
>
> Does anyone know how to pass variable defined in JSP to a JavaScript
> function.
>
> Specifically. what I'm trying to do is something like this.
>
> //: In JSP
>         forwardURL = aRequest.getParameter("forwardURL");
>
> //: In JavaScript
>         window.open(forwardURL0;
>
>
> Thanks in advance.
>
> -----Original Message-----
> From: Frank Carlos [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 08, 2001 5:27 PM
> To: [EMAIL PROTECTED]
> Subject: Building servlets with session tracking and JSP
>
>
> Here's a new tutorial that teaches techniques for building Internet
> applications using servlet and JSP technology. A key point is
> to enable
> session handling, so the servlet knows which user is doing what. The
> tutorial shows a URL bookmarking system in which multiple
> users access a
> system to add, remove, and update an HTML listing of
> bookmarks. The servlet
> uses JSP technology to handle the user interaction... Servlet
> JSP Tutorial:
> http://www-105.ibm.com/developerworks/education.nsf/java-onlin
ecourse-bytitl
e/80CC54124F0ABE25862569B300554AFB?Open&l=95,t=gr,p=Servlet-JSP-Tracking

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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