struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zimnoch, Todd Contractor" <>
Subject Whitespace in String-mapped properties
Date Tue, 05 Aug 2014 18:57:19 GMT
I'm trying to implement mapped properties for buttons on a form. Given the following code:

private Map<String, String> removeButtons = new HashMap<String, String>();
public Map<String, String> getRemoveButtons() {
    log.debug("Call to getRemoveButtons()");
    return removeButtons;

and the following HTML:

<input type="submit" value="Remove" name="removeButtons['<string>']" id="removebuttons['<string>']"/>

the getRemoveButtons function is never called if the string has whitespace in it. Is this
by design or a bug? Is there a workaround?

Todd Zimnoch

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message