2014-08-05 20:57 GMT+02:00 Zimnoch, Todd   Contractor <[email protected]>:
> 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?

It's because of security reasons, you can try to use the latest
snapshot, there was some changes in that area

https://github.com/apache/struts/blob/STRUTS_2_3_16_3/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java#L146


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to