ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Ellis <ellis....@gmail.com>
Subject Re: choose and otherwise
Date Wed, 02 Dec 2009 15:49:01 GMT
On Wed, Dec 2, 2009 at 2:54 PM, jonte.eriksson <jonte.eriksson@gmail.com> wrote:
> But I still got some issues when using a single parameter, like boolean.
> What do I write in the test expression to test that value?
> <if test="id"> does not match when the parameter is set to true.

You could try:
  <if test="_parameter">
... which I think should work (haven't tested).

I must admit, I tend to use Collections.singletonMap(), and pass that
as a parameter if I want to refer to a single parameter by name.


To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message