aspose file tools*
The moose likes Struts and the fly likes Creating JSON object in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Creating JSON object in struts2" Watch "Creating JSON object in struts2" New topic
Author

Creating JSON object in struts2

James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 115
Hi,

below is code in jsp



The string which comes in globalErrorMessage is

below is code in javascript



then I am getting below error.



Please let me know how to avoid this error.

if I put directly in jsp without using <s:property> then It is not showing any error.

Rgds
Peter
James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 115
I found that we just need to add escape=false.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Creating JSON object in struts2