You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Cartwright <Jo...@noaa.gov> on 2009/03/16 18:37:22 UTC
how to prevent JSP from interpreting ${0}
Hello All,
I'm trying to get the literal string "this is a test: ${0}" to be
rendered in my JSP output. Can someone please tell me how to protect
this string from getting evaluated on the server-side?
Thanks!
--john
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to prevent JSP from interpreting ${0}
Posted by Musachy Barroso <mu...@gmail.com>.
If you don't have any EL on that page you can disable it using the
"isELIgnored" attribute of the page directive.
musachy
On Mon, Mar 16, 2009 at 1:46 PM, John Cartwright
<Jo...@noaa.gov> wrote:
> Thanks for the suggestion, Lukasz. That's one of the things that I tried,
> but couldn't get it to work for me. I need the braces to appear as such in
> the generated page as it's part of a javascript expression.
>
> I found a workable solution in:
>
> "this is a test: $\{0\}"
>
>
> but was hoping there might be a better way.
>
> --john
>
>
> Lukasz Lenart wrote:
>>
>> 2009/3/16 John Cartwright <Jo...@noaa.gov>:
>>
>>>
>>> I'm trying to get the literal string "this is a test: ${0}" to be
>>> rendered
>>> in my JSP output. Can someone please tell me how to protect this string
>>> from getting evaluated on the server-side?
>>>
>>
>> Use HTML entities [1]
>>
>> [1] http://www.w3schools.com/tags/ref_ascii.asp
>>
>>
>> Regards
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to prevent JSP from interpreting ${0}
Posted by John Cartwright <Jo...@noaa.gov>.
Thanks for the suggestion, Lukasz. That's one of the things that I
tried, but couldn't get it to work for me. I need the braces to appear
as such in the generated page as it's part of a javascript expression.
I found a workable solution in:
"this is a test: $\{0\}"
but was hoping there might be a better way.
--john
Lukasz Lenart wrote:
> 2009/3/16 John Cartwright <Jo...@noaa.gov>:
>
>> I'm trying to get the literal string "this is a test: ${0}" to be rendered
>> in my JSP output. Can someone please tell me how to protect this string
>> from getting evaluated on the server-side?
>>
>
> Use HTML entities [1]
>
> [1] http://www.w3schools.com/tags/ref_ascii.asp
>
>
> Regards
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to prevent JSP from interpreting ${0}
Posted by Lukasz Lenart <lu...@googlemail.com>.
2009/3/16 John Cartwright <Jo...@noaa.gov>:
> I'm trying to get the literal string "this is a test: ${0}" to be rendered
> in my JSP output. Can someone please tell me how to protect this string
> from getting evaluated on the server-side?
Use HTML entities [1]
[1] http://www.w3schools.com/tags/ref_ascii.asp
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org