Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating JSON object in struts2

 
James Peter
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found that we just need to add escape=false.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic