ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: Use <isNotNull> with a java.lang.String parameterClass
Date Wed, 20 May 2009 15:59:42 GMT
Yes - a map or bean is required for that.

The GRD approach is to do this:

Map<String, String> param = new HashMap<String, String>();
param.put("value", yourString)

Crude, but effective...

Larry


On Wed, May 20, 2009 at 9:40 AM, Chema <demablogia@gmail.com> wrote:
> Hello:
>
> How I can to use <isNotNull> tag in a statement if parameterClass property
> is java.lang.String ?
>
> When I define <isNotNull property="value#> , I get an error : String hasn't
> got a READABLE "value" property ( or something like that )
>
> Is required to pass a JavaBean parameter to useĀ  <isNotNull> tag ?
>
>
> Thanks and regards
>
>

Mime
View raw message