You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Chema <de...@gmail.com> on 2009/05/20 17:40:01 UTC
Use with a java.lang.String parameterClass
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
Re: Use with a java.lang.String parameterClass
Posted by Chema <de...@gmail.com>.
>or you just typed wrong
Yeah, that is :-S
>Yes - a map or bean is required for that.
Right. I tried this and worked it
>Look at <isParameterPresent>. I think this will do what you need.
OK. Looks good. I'll try it :-)
Thanks to everyone
Re: Use with a java.lang.String parameterClass
Posted by Jeff Butler <je...@gmail.com>.
Look at <isParameterPresent>. I think this will do what you need.
Jeff Butler
On Wed, May 20, 2009 at 10:40 AM, Chema <de...@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
>
>
Re: Use with a java.lang.String parameterClass
Posted by Larry Meadors <la...@gmail.com>.
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 <de...@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
>
>
Re: Use with a java.lang.String parameterClass
Posted by Betto McRose Gamarra <ic...@gmail.com>.
maybe the problem is in here; "value#
should be "value"
or you just typed wrong
by the way, can you give the all tag example ?
On Wed, May 20, 2009 at 11:40, Chema <de...@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
>
>
--
Betto McRose Gamarra
IcarusDB
"Soluciones Informáticas"
Cel.: +595 992 686947
http://www.linkedin.com/in/robertogamarra
http://icarus.tocorre.com/