This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Struts and the fly likes Ampersand from action class escaped to '&' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ampersand from action class escaped to Watch "Ampersand from action class escaped to New topic

Ampersand from action class escaped to '&'

Henry Horace

Joined: Oct 07, 2011
Posts: 1
Currently I'm having issues with generating non-breaking white space for options in a Struts select tag. Trying to make multi-column select if you will, and line up the option text.

If my action property has a " ", the '&' is replaced with "&" I get " " which will not generate non-breaking spaces of course.

I did a quick search in the source, but nothing really surfaced.

I have seen were the <s:property> has the "escape" property, but nothing like that for the select.

Seems like my only option (no-pun intended) is to build the select more manually with an iterator...



I agree. Here's the link:
subject: Ampersand from action class escaped to '&amp;amp;'
It's not a secret anymore!