Announcement Announcement Module
Collapse
No announcement yet.
HTMLEscape quotes Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTMLEscape quotes

    Hi all,

    I'm relatively new to the world of Spring and SWF. I have hit a slightly problem in escaping the ${spring.value} fields and error messages to be placed in JSON view. Namely quotes.

    I was thinking the best way to solve this would be to create a new package with a custom tag library I could call from the JSP, copying the HTMLEscape into a JSONEscape in the new .java file within the package. Would this be the best route or is there a better way?

    Thanks

  • #2
    Found a solution, for anyone else having a similar issue:

    Code:
    <spring:escapeBody javaScriptEscape="true">${status.value}</spring:escapeBody>

    Comment

    Working...
    X