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.
Thanx
Amit
==
On Sun, Dec 08, 2002 at 10:11:39PM -0500, Amit Gupta wrote:
> 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
Yes you can. You need to remember, however, that the JSP expression will be
evaluated on the server before the page is rendered at the client. The JSP
expression should output valid JavaScript.
Regards,
Richard
At 10:11 PM 12/8/2002 -0500, you wrote:
Can we have JSP expression inside javascript
> -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
> generatin
d reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Yee
> Sent: Monday, December 09, 2002 12:22 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP inside Javascript
>
>
> Yes you can. You need to remember, however, that the JSP
> expression will be
> evaluated on the
else
document.write(defaulttext1+" onclick=\"return fn1();\" "+defaulttext2);
-Original Message-
From: M. Simms [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 9:51 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP
: [EMAIL PROTECTED]
> Asunto: 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