Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=XW-103


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XW-103
    Summary: OGNL wraps Iterators
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: XWork
   Versions:
             1.0-beta2

   Assignee: 
   Reporter: John Patterson

    Created: Mon, 6 Oct 2003 4:26 AM
    Updated: Mon, 6 Oct 2003 4:26 AM

Description:
I have just tried to use the Counter bean class (which implements Iterator) from WW1 
like so:

<ww:bean name="com.myorg.myapp.util.Counter">

<ww:param name="first" value="'1'"/> 

<ww:param name="last" value="'9'"/> 

<ww:iterator value="that">

<option  value="<ww:property value="current"/>"><ww:property value="current"/></option>

</ww:iterator>

</ww:bean>

I get this error:

"org.apache.jasper.JasperException: can't set property first on Iterator"

which I have traced to being thrown from OGNL during the set operation.  When I remove 
the Iterator interface from the Counter bean and recompile OGNL sets the property 
fine.  It appears that OGNL does not allow you to set properties on objects that 
implement Iterator.  Maybe OGNL wraps Iterators in order to give them extra 
functionality but in the process hides the original obejct.

John.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to