Yes, you were right and I was wrong =).  However, this still won't fix my
problem when a return is entered.  Here is an example of the what comes
out:

function('blah', 'test

test.');

This is what doesn't work with Javascript properly, as it doesn't
understand the new line.  I'll probably just have to create a tag that
replaces all new line and carriage return characters with '\n' and '\r'.

On Tue, 4 May 2004, Menke, John wrote:

> the default for escapeXml is true right?  if you do false it will print out
> your javascript correctly I am printing out fairly complicated hash
> structures to my pages with core:out escapeXml="false"
> 
> 
> 
> -----Original Message-----
> From: Eric W Hauser [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 10:35 AM
> To: Tag Libraries Users List
> Subject: RE: Java String to Javascript String
> 
> 
> I'm not sure I made my question clear.  If I use <c:out /> (which
> escapeXml is set to false by default so you don't have to define that),
> everything works fine.  My issue is that I have to convert certain
> characters (new line or carriage returns are an example) into
> their Javascript literals for these characters, or else the Javascript
> will not work.  I was just looking to see if anyone had an existing tag
> with this functionality.
> 
> On Tue, 4 May 2004, Menke, John wrote:
> 
> > i do this with core:out 
> > 
> > use <core:out value='${string}' escapeXml="false"/>
> 
> -------------------
> Eric Hauser
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


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

Reply via email to