struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Question about <s:iterator value=
Date Tue, 03 Apr 2007 15:08:34 GMT
This should probably be in struts-user.

--- Will Berger wrote:
> Figured it out.  Not sure why.
> 
>  <s:iterator value="getQuery('Current')">
>    
> In this case I called the method exactly as it is in
> the class.  The above works.
> 
> Below does not.  I thought ognl would prepend the
> "get" in front of my method call as follows.
> 
> <s:iterator value="query('Current')">
> 
> The method in the action class below.
> 
> public Iterator getQuery(String sQuery)
>     { ...}
> 
> If someone has an answer, i would love to hear it.

Off-hand I would imagine because of the JavaBean spec;
non-indexed getters are assumed to take zero params,
so it doesn't think it's a normal getter?

d.



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message