You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nishant Deshpande <ni...@gmail.com> on 2005/11/11 01:15:27 UTC

bug in map backed when key has '.' in it

i have

<input type="text"
name="header(revenue%28Debt+Consol.-Net+Lead+Revenue%29)" ...>

this is backed by a bean which has

setHeader(String key, String value) { ... }

in general this is fine, but for the above line, the '.' in the key
causes problems. looks like struts treats this as a nested method call
(??) ?

anyone come across this and any solutions?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: bug in map backed when key has '.' in it

Posted by Michael Jouravlev <jm...@gmail.com>.
On 11/10/05, Nishant Deshpande <ni...@gmail.com> wrote:
> i have
>
> <input type="text"
> name="header(revenue%28Debt+Consol.-Net+Lead+Revenue%29)" ...>
>
> this is backed by a bean which has
>
> setHeader(String key, String value) { ... }
>
> in general this is fine, but for the above line, the '.' in the key
> causes problems. looks like struts treats this as a nested method call
> (??) ?
>
> anyone come across this and any solutions?

http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils/BeanUtilsBean.html#populate(java.lang.Object,%20java.util.Map)

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org