struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Whitespace in String-mapped properties
Date Wed, 06 Aug 2014 07:22:08 GMT
2014-08-05 20:57 GMT+02:00 Zimnoch, Todd   Contractor <Todd.Zimnoch@ssa.gov>:
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message