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:
>
> > 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 scriptlet, you should be aware
> that "\%" is not legal syntax for a Java string, so you are still going
> to have problems.
>
> >
> > Bill
> >
>
> Craig McClanahan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

Reply via email to