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 *"* 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:"TheLabelName"
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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org