You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2008/12/01 23:19:36 UTC

[jira] Commented: (WW-2806) Parameters interceptor excludes parameters having space in their names

    [ https://issues.apache.org/struts/browse/WW-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45081#action_45081 ] 

Musachy Barroso commented on WW-2806:
-------------------------------------

As a temporary workaround, you can set "acceptedParamNames" to a regular expression that accepts spaces. The most common use case of parameters is to be bound to action fields, which cannot have spaces, hence the restriction. Following up on the dev mailing list at the moment.

> Parameters interceptor excludes parameters having space in their names
> ----------------------------------------------------------------------
>
>                 Key: WW-2806
>                 URL: https://issues.apache.org/struts/browse/WW-2806
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.11.2
>         Environment: Windows XP / jdk1.5.0_15
>            Reporter: Girish Kamath
>            Assignee: Musachy Barroso
>             Fix For: 2.1.3
>
>
> The ONGL expressions do not set values correctly into Map and Properties. If the parameter names have space in them, the {paramName,paramValue} pair
> is ignored and not populated in the Map/Properties instance in action.
> For example :
> In AbcAction has a  java.util.Properties instance by name "settings".
> So a request parameter of form
> settings["Test Parameter Name"] = 1
> should result in the follwing entry in AbcAction.settings
> {"Test Parameter Name" , "1"}
> This doesnt seem to work in the upgarde and needs to be addressed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.