struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso (JIRA)" <>
Subject [jira] Commented: (WW-2806) Parameters interceptor excludes parameters having space in their names
Date Mon, 01 Dec 2008 22:19:36 GMT


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:
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions:
>         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.

View raw message