You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Stefan Podkowinski (JIRA)" <ji...@apache.org> on 2006/07/04 16:09:17 UTC

[jira] Created: (STR-2901) Map-backed forms won't work with ')' characters in keys

Map-backed forms won't work with ')' characters in keys
-------------------------------------------------------

         Key: STR-2901
         URL: http://issues.apache.org/struts/browse/STR-2901
     Project: Struts 1
        Type: Bug

    Versions: 1.2.8    
 Environment: java 5, windows
    Reporter: Stefan Podkowinski



I'm trying to setup a form using the map-backed form pattern as described here:
http://struts.apache.org/1.x/userGuide/building_controller.html#map_action_form_classes

While working with xpath expressions as key values, i noticed that struts will have a unexpected behaviour on ')' occurences in keys.

<html:text property="value(/d:layout/d:page/d:layout-context[position()=1])"/>

the key value passed to get/setValue() becomes:
/d:layout/d:page/d:layout-context[position(

Appearently all characters after the closing bracket in "position()" will be simply cut off.

Please optimize parsing to the full string value as there is no reason not to use ')' characters in keys. 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (STR-2901) Map-backed forms won't work with ')' characters in keys

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/STR-2901?page=all ]
     
Niall Pemberton resolved STR-2901:
----------------------------------

    Resolution: Duplicate

The problem is with Commons BeanUtils, rather than Struts and there is already an open issue for this - BEANUTILS-109

http://issues.apache.org/jira/browse/BEANUTILS-109


> Map-backed forms won't work with ')' characters in keys
> -------------------------------------------------------
>
>          Key: STR-2901
>          URL: http://issues.apache.org/struts/browse/STR-2901
>      Project: Struts 1
>         Type: Bug

>     Versions: 1.2.8
>  Environment: java 5, windows
>     Reporter: Stefan Podkowinski

>
> I'm trying to setup a form using the map-backed form pattern as described here:
> http://struts.apache.org/1.x/userGuide/building_controller.html#map_action_form_classes
> While working with xpath expressions as key values, i noticed that struts will have a unexpected behaviour on ')' occurences in keys.
> <html:text property="value(/d:layout/d:page/d:layout-context[position()=1])"/>
> the key value passed to get/setValue() becomes:
> /d:layout/d:page/d:layout-context[position(
> Appearently all characters after the closing bracket in "position()" will be simply cut off.
> Please optimize parsing to the full string value as there is no reason not to use ')' characters in keys. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira