struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Rodriguez Lopez <alo...@flordeutopia.pt>
Subject Re: How to keep quotation marks
Date Mon, 05 Apr 2010 14:38:32 GMT
No problem, at least you are not asking where to download hibernate ;D

Em 05-04-2010 15:35, Craig Ricciuto escreveu:
> Thank you very much....that was so easy...can't believe I didn't find that
> while searching. I guess I need to upgrade my searching abilities a bit,
> heh.  I used the escape attribute (set it to false) and worked like a
> charm.
>
> Thanks again.
>
> On Mon, Apr 5, 2010 at 10:14 AM, Alex Rodriguez Lopez<
> alopez@flordeutopia.pt>  wrote:
>
>> Try escape or escapeJavaScript atributes of<s:property>  tag, never used
>> them but maybe are helpful for your situation
>>
>> http://struts.apache.org/2.x/docs/property.html
>>
>> Em 05-04-2010 15:06, Craig Ricciuto escreveu:
>>
>>   Hi there. I've run into situation that I'm not quite sure how to resolve.
>>>   In one of my action classes I create a string from data from my database.
>>> This string though is actually supposed to be some Javascript that I use
>>> in
>>> the resulting JSP but the quotation marks when being output by Struts2
>>> change to the HTML entity *&quot;* where I would like them to stay as the
>>> quotation marks I set in my action class.
>>>
>>> A simple example would be something like the following:
>>>
>>> In my action class:
>>> String javascriptString = "LabelName: \""+ databaseLabeName +
>>> "\".........";
>>>
>>>
>>> But when I grab the string from within the JSP I get:
>>> LabeName:&quot;TheLabelName&quot;
>>>
>>> This is not what I want as I need the actual quotation marks, so I am
>>> wondering what I can do to keep the quotation marks in that string?
>>>
>>> Thanks,
>>> Craig
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message