aspose file tools*
The moose likes Struts and the fly likes Checkbox list converting characters in label to character entities Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Checkbox list converting characters in label to character entities" Watch "Checkbox list converting characters in label to character entities" New topic
Author

Checkbox list converting characters in label to character entities

Sam Gardner
Ranch Hand

Joined: Jul 22, 2008
Posts: 48
Hey Guys -

I've run into a weird issue with a struts2 checkboxlist.

Whenever items in the list contain '<' or '>' characters, they are being converted to their character entities in the HTML, so that links that I want encoded in my options are not being recognized.

The radio list does not do this, so does anyone know what I might change in the freemarker to disable this?

For example, a problematic list entry:


outputs as:

"SSI <a href="http://en.wikipedia.org/wiki/Supplemental_Security_Income" target="_blank">Supplementary Security Income</a> for"

instead of evaluating as a link.

Thanks for any help
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The checkboxlist template file contains this:which should answer your question. (The radiomap template file omits the ?html escaping.)
Sam Gardner
Ranch Hand

Joined: Jul 22, 2008
Posts: 48
Ah, thank you very much. That fixed it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checkbox list converting characters in label to character entities