> -----Original Message-----
> From: Amit Gupta [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 8:42 AM
> To: [EMAIL PROTECTED]
> Subject: JSP inside Javascript
>
>
> Can we have JSP expression inside javascript? I have
> javascript which is
> generating tree structure but I want to have JSP expression
> inside the tree.
> If anybody knows how to put this I will appreciate if
> somebody forward me
> example or link.

yes you can. but the javascript code (AFAIK) has to be in the jsp page
itself.
ex:

<script>
var var1 = "<%=myVariable%>";
</script>

> Thanx
> Amit
Vikram.
>
> ==============================================================
> =============
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
Disclaimer: This e-mail message along with any attachments is intended only
for the addressee and may contain confidential and privileged information of
GTL Limited. If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly prohibited. If you have received this message by
error, please notify us immediately, return the original mail to the sender
and delete the message from your system.

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to