Re: JSP quoting and escape conventions

2001-05-08 Thread Jona Sahnwaldt
piler should generate a line like : String foo = "testing %>"; While I agree that String foo = "testing %\>"; is invalid java code, it is the JSP compilers responsibility to convert the JSP escape sequence. Thanks, Paul -Original Message- From: Craig R. McClanah

Re: JSP quoting and escape conventions

2001-02-20 Thread Craig R. McClanahan
William Au wrote: > I am having trouble with quoting in scripting elements with Tomcat > 3.2.1. > > "%\>" does not work for quoting "%>" as defined in section 2.4 for > JSP 1.1 spec. > > Any way to get around it? > Where are you trying to use this escape? If you are inside a string literal in a

Re: JSP quoting and escape conventions

2001-02-20 Thread William Au
I was inside a scriplet, setting up a string that contains the character "%>": <% String foo = "testing %\>"; %> I ended up doing: <% String foo = "testing %" + ">"; %> But the first code segment should work according to the JSP 1.1 spec. Bill "Craig R. McClanahan" wrote: > William Au wrote

Re: JSP quoting and escape conventions

2001-02-20 Thread Craig R. McClanahan
William Au wrote: > I was inside a scriplet, setting up a string that contains the character > "%>": > > <% > String foo = "testing %\>"; > %> > > I ended up doing: > > <% > String foo = "testing %" + ">"; > %> > > But the first code segment should work according to the JSP 1.1 spec. > Except fo

Re: JSP quoting and escape conventions

2001-02-20 Thread William Au
Yes, I see what you mean. I guess it is a matter of what happen first. If the escape happens first, then the JSP <% String foo = "testing %\>"; %> would be translate to the following java code String foo = "testing %>"; Then it would be valid java code. However, it seems to me in Tomcat, the

RE: JSP quoting and escape conventions

2001-02-21 Thread Paul FitzPatrick
s the JSP compilers responsibility to convert the JSP escape sequence. Thanks, Paul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 3:26 PM To: [EMAIL PROTECTED] Subject: Re: JSP quoting and escape conventions William Au wrote: >

Re: JSP quoting and escape conventions

2001-02-21 Thread Craig R. McClanahan
William Au wrote: > Yes, I see what you mean. I guess it is a matter of what happen first. > If the escape happens first, then the JSP > > <% String foo = "testing %\>"; %> > > would be translate to the following java code > > String foo = "testing %>"; > > Then it would be valid java code. > >