On Wed, Dec 2, 2009 at 2:54 PM, jonte.eriksson <jonte.eriks...@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.


Martin

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

Reply via email to