You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sergey Livanov <Se...@ukrpost.net> on 2004/11/09 22:51:46 UTC
Jscript + jstl
I'm trying to assign value to a Java script variable.
When I'm typing in a text, the code works
<script type="text/javascript">
TREE_DESC = [
............
] ;
</script>
when the value is assigned from bean, all I get is error jscript.
<script type="text/javascript">
TREE_DESC = [
<c:out value='${goodtree.tree}'/>
] ;
</script>
regards,
Sergey mailto:Sergey.Livanov@ukrpost.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Jscript + jstl
Posted by Jeff Beal <jb...@webmedx.com>.
Have you done "View Source" from your browser? Chances are pretty good
that the error will jump right out. It's likely to be missing quotation
marks or characters that should be escaped in a JavaScript environment.
-- Jeff
Sergey Livanov wrote:
> I'm trying to assign value to a Java script variable.
> When I'm typing in a text, the code works
> <script type="text/javascript">
> TREE_DESC = [
> ............
> ] ;
> </script>
>
> when the value is assigned from bean, all I get is error jscript.
>
> <script type="text/javascript">
> TREE_DESC = [
> <c:out value='${goodtree.tree}'/>
> ] ;
> </script>
>
> regards,
> Sergey mailto:Sergey.Livanov@ukrpost.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org