You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robert Taylor <rt...@mulework.com> on 2002/08/20 15:55:45 UTC
Escaping HTML in
Is there a way to NOT escape HTML in the value attribute of <html:multibox
... />. I'm trying to dynamically populate the value attribute using
<bean:write .../> and apparently the multibox tag does not process the
embedded <bean:write ... />.
Code in JSP page:
<html:multibox property="upgradeLicenseKeys" value="<bean:write
name='element' property='licenseKeyId'/>"/>
HTML rendered:
<input type="checkbox" name="upgradeLicenseKeys" value="<bean:write
name='element' property='licenseKeyId'/>">
I've tried the following as well (use single quotes to encapsulate the
value's value):
<html:multibox property="upgradeLicenseKeys" value='<bean:write
name="element" property="licenseKeyId"/>'/>
HTML rendered:
<input type="checkbox" name="upgradeLicenseKeys" value='<bean:write
name="element" property="licenseKeyId"/>'>
I have included the appropriate page directive which imports the taglibrary:
<%@ taglib uri="jakarta-struts-bean" prefix="bean"%>
...and I am using other <bean:write .../> tags on the same page (not in the
same fashion) and they are working properly.
I found a message in the archives where the solution was to add
filter="false" in the bean:write tag, but the <html:multibox tag has no
attribute like that.
I'm sure this has been solved before, I just cannot seem to find it in the
archives.
robert
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>