ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Laflamme" <philippe.lafla...@mail.mcgill.ca>
Subject Iterate property references
Date Mon, 06 Dec 2004 15:18:28 GMT

I'm wondering if somthing like this was possible:

<iterate property="names" open="(" close=")" conjunction="OR">
	<isEqual property="names[]" compareValue="aName">
		colValue = 1
	<isEqual property="names[]" compareValue="anotherName">
		colValue = 2

As you may have noticed the braketed porperty is referenced in an isEqual
tag, not directly as the value in a WHERE clause...

I haven't tried it but I came up with a situation that could have required
this. I was wondering if it was handled by iBatis' tags.


View raw message