Has anyone seen a tag library or some example code that will allow you to
grab an String from a scoped object and embed it as a Javascript string?
What I want to do is:

<script language="JavaScript" type="text/javascript">
function('blah', '${requestScope.attribute}');
</script>

This works fine until attribute contains a carriage return.  I haven't
tested this yet, but I believe if I was using JSP 1.2 it would
automatically insert a carriage return if I used <c:out /> instead of the
JSP 2.0 expression (which would also cause problems for Javascript).  I
hadn't thought of a good solution yet, so I figured I'd see if anyone had
already tackled this one.

-------------------
Eric Hauser
[EMAIL PROTECTED]
(317) 679-4766


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to