ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <eugeny...@jdevelop.com>
Subject Re: <iterate>
Date Tue, 09 Aug 2005 12:29:37 GMT
On Tue, Aug 09, 2005 at 02:27:38PM +0200, Niels Beekman wrote:
> You defined a parameter-class list, this is java.util.List, then you
> iterate over 'something' which does not exist. If you pass a single
> parameter (like you do now) do not use the attribute 'property' of the
> iterate-tag:
> 
> <select id="getRules" parameterClass="list"
>   resultClass="com.greenvalley.TMS.MML.Entity.Rule">SELECT rule_id,
>   name, description FROM rule 
>   <dynamic prepend=" WHERE ">
>       <iterate prepend=" rule_id in " open="(" close=")"
> conjunction=",">
> 	  #[]#
>       </iterate>
>   </dynamic>
> </select>

Well, I got it, but #value[]# works just fine while #[]# returns nothing...

-- 
Eugene N Dzhurinsky

Mime
View raw message