You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Torr Liu (JIRA)" <ji...@apache.org> on 2007/08/16 14:06:37 UTC

[jira] Created: (WW-2118) How to solve the property confusion issue in ValueStack?

How to solve the property confusion issue in ValueStack?
--------------------------------------------------------

                 Key: WW-2118
                 URL: https://issues.apache.org/struts/browse/WW-2118
             Project: Struts 2
          Issue Type: Bug
          Components: Value Stack
    Affects Versions: 2.0.9
            Reporter: Torr Liu


Here Struts2 will put some default object into the stack, so it will make the object properties confusion: for example, one default object in the value stack has one proeprty named "a", and in the customer jsp, it will use the  express to access the property "a" from his own customizing object not the system object in case of this customizing object in not in the value stack; now it will return the value  of the default objects' property value. (which actully should return null).

and one more case, if the developer put the Product and User object into the stack orderly. and both of these two objects has the same proeprty "name". now the developer wants to get the Product 's name value, it's not possible, rigt? (the  index access is not ok here for can not get the index of the product object.)

For these two issues are very serious if they are happened. Are there any solution for these?

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


[jira] Closed: (WW-2118) How to solve the property confusion issue in ValueStack?

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes closed WW-2118.
----------------------------

    Resolution: Not A Problem

These types of questions should be asked on the Struts users mailing list and not by opening JIRA tickets. For more information on the mailing list, visit:

http://struts.apache.org/mail.html

> How to solve the property confusion issue in ValueStack?
> --------------------------------------------------------
>
>                 Key: WW-2118
>                 URL: https://issues.apache.org/struts/browse/WW-2118
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.0.9
>            Reporter: Torr Liu
>
> Here Struts2 will put some default object into the stack, so it will make the object properties confusion: for example, one default object in the value stack has one proeprty named "a", and in the customer jsp, it will use the  express to access the property "a" from his own customizing object not the system object in case of this customizing object in not in the value stack; now it will return the value  of the default objects' property value. (which actully should return null).
> and one more case, if the developer put the Product and User object into the stack orderly. and both of these two objects has the same proeprty "name". now the developer wants to get the Product 's name value, it's not possible, rigt? (the  index access is not ok here for can not get the index of the product object.)
> For these two issues are very serious if they are happened. Are there any solution for these?

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