Results 1 to 2 of 2

Thread: HTMLEscape quotes

  1. #1
    Join Date
    Apr 2008
    Posts
    15

    Default 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. #2
    Join Date
    Apr 2008
    Posts
    15

    Default

    Found a solution, for anyone else having a similar issue:

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •