Calling a function using ognl - parameters are not interpreted...

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling a function using ognl - parameters are not interpreted...

foxesout
Hello,
 
Inside my mapper, i would like to call a method on one of my classes but I have trouble passing parameters to it...
 
I have the following:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{user.name}, #{user.department}) == true ">
........ 
</if>
 
It looks like #{user.name} and #{user.department} are not passed properly.  Am i using the right syntax?
If I use #{user.name} as part of my select statement, it works fine, but when passed as a parameter above, the userExists method gets the follwoing {Mary=null}.  While all I want is "Mary".
Looks like i'm not using OGNL syntax correctly.
Or maybe OGNL can't interpret #{user.name}???
 
I tried to use bind as follows:
<bind name="userName" value="user.name" />
 
And then the OGNL would looke like this:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{userName}, #{user.department}) == true ">
 
Inside my userExists method, i see that "{Mary=null}" is still being passed instead of Mary...
 
Any help is appreciated.
 
Thank you

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Calling a function using ognl - parameters are not interpreted...

Frank Martínez
Hi NK,

You are mixing OGNL syntax with Parameter binding syntax. Try this instead:

<if test="@com.mypackage.utils.MyUtils@userExists(userName, user.department) == true ">


On Mon, Feb 10, 2014 at 3:57 PM, nk <[hidden email]> wrote:
Hello,
 
Inside my mapper, i would like to call a method on one of my classes but I have trouble passing parameters to it...
 
I have the following:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{user.name}, #{user.department}) == true ">
........ 
</if>
 
It looks like #{user.name} and #{user.department} are not passed properly.  Am i using the right syntax?
If I use #{user.name} as part of my select statement, it works fine, but when passed as a parameter above, the userExists method gets the follwoing {Mary=null}.  While all I want is "Mary".
Looks like i'm not using OGNL syntax correctly.
Or maybe OGNL can't interpret #{user.name}???
 
I tried to use bind as follows:
<bind name="userName" value="user.name" />
 
And then the OGNL would looke like this:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{userName}, #{user.department}) == true ">
 
Inside my userExists method, i see that "{Mary=null}" is still being passed instead of Mary...
 
Any help is appreciated.
 
Thank you

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Calling a function using ognl - parameters are not interpreted...

foxesout
Yes, thank you, of course...
 
One more question...  I have another case where the method below (userExists) doesn't exist in the _parameter object but exists in it's parent.
For example if I'm operating on a User object for my current mapper and want to execute a method from the Person object, where User extends Person.
It seems that myBatis can't get to the inherited method, is that so?
 
Thanks so much!
 

On Monday, February 10, 2014 5:39:29 PM UTC-5, Frank Martinez wrote:
Hi NK,

You are mixing OGNL syntax with Parameter binding syntax. Try this instead:

<if test="@com.mypackage.utils.MyUtils@userExists(userName, user.department) == true ">


On Mon, Feb 10, 2014 at 3:57 PM, nk <<a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="_LBGft6iI2AJ">nku...@...> wrote:
Hello,
 
Inside my mapper, i would like to call a method on one of my classes but I have trouble passing parameters to it...
 
I have the following:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name}, #{user.department}) == true ">
........ 
</if>
 
It looks like #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name} and #{user.department} are not passed properly.  Am i using the right syntax?
If I use #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name} as part of my select statement, it works fine, but when passed as a parameter above, the userExists method gets the follwoing {Mary=null}.  While all I want is "Mary".
Looks like i'm not using OGNL syntax correctly.
Or maybe OGNL can't interpret #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name}???
 
I tried to use bind as follows:
<bind name="userName" value="<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name" />
 
And then the OGNL would looke like this:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{userName}, #{user.department}) == true ">
 
Inside my userExists method, i see that "{Mary=null}" is still being passed instead of Mary...
 
Any help is appreciated.
 
Thank you

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="_LBGft6iI2AJ">mybatis-user...@googlegroups.com.
For more options, visit <a onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;" href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Calling a function using ognl - parameters are not interpreted...

Frank Martínez
In Java, static methods are not inherited.


On Mon, Feb 10, 2014 at 6:01 PM, nk <[hidden email]> wrote:
Yes, thank you, of course...
 
One more question...  I have another case where the method below (userExists) doesn't exist in the _parameter object but exists in it's parent.
For example if I'm operating on a User object for my current mapper and want to execute a method from the Person object, where User extends Person.
It seems that myBatis can't get to the inherited method, is that so?
 
Thanks so much!
 

On Monday, February 10, 2014 5:39:29 PM UTC-5, Frank Martinez wrote:
Hi NK,

You are mixing OGNL syntax with Parameter binding syntax. Try this instead:

<if test="@com.mypackage.utils.MyUtils@userExists(userName, user.department) == true ">


On Mon, Feb 10, 2014 at 3:57 PM, nk <[hidden email]> wrote:
Hello,
 
Inside my mapper, i would like to call a method on one of my classes but I have trouble passing parameters to it...
 
I have the following:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{user.name}, #{user.department}) == true ">
........ 
</if>
 
It looks like #{user.name} and #{user.department} are not passed properly.  Am i using the right syntax?
If I use #{user.name} as part of my select statement, it works fine, but when passed as a parameter above, the userExists method gets the follwoing {Mary=null}.  While all I want is "Mary".
Looks like i'm not using OGNL syntax correctly.
Or maybe OGNL can't interpret #{user.name}???
 
I tried to use bind as follows:
<bind name="userName" value="user.name" />
 
And then the OGNL would looke like this:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{userName}, #{user.department}) == true ">
 
Inside my userExists method, i see that "{Mary=null}" is still being passed instead of Mary...
 
Any help is appreciated.
 
Thank you

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Calling a function using ognl - parameters are not interpreted...

foxesout
But my method isn't static...
 

On Monday, February 10, 2014 6:03:39 PM UTC-5, Frank Martinez wrote:
In Java, static methods are not inherited.


On Mon, Feb 10, 2014 at 6:01 PM, nk <<a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="1qZPqb8yGwwJ">nku...@...> wrote:
Yes, thank you, of course...
 
One more question...  I have another case where the method below (userExists) doesn't exist in the _parameter object but exists in it's parent.
For example if I'm operating on a User object for my current mapper and want to execute a method from the Person object, where User extends Person.
It seems that myBatis can't get to the inherited method, is that so?
 
Thanks so much!
 

On Monday, February 10, 2014 5:39:29 PM UTC-5, Frank Martinez wrote:
Hi NK,

You are mixing OGNL syntax with Parameter binding syntax. Try this instead:

<if test="@com.mypackage.utils.MyUtils@userExists(userName, user.department) == true ">


On Mon, Feb 10, 2014 at 3:57 PM, nk <[hidden email]> wrote:
Hello,
 
Inside my mapper, i would like to call a method on one of my classes but I have trouble passing parameters to it...
 
I have the following:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name}, #{user.department}) == true ">
........ 
</if>
 
It looks like #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name} and #{user.department} are not passed properly.  Am i using the right syntax?
If I use #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name} as part of my select statement, it works fine, but when passed as a parameter above, the userExists method gets the follwoing {Mary=null}.  While all I want is "Mary".
Looks like i'm not using OGNL syntax correctly.
Or maybe OGNL can't interpret #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name}???
 
I tried to use bind as follows:
<bind name="userName" value="<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name" />
 
And then the OGNL would looke like this:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{userName}, #{user.department}) == true ">
 
Inside my userExists method, i see that "{Mary=null}" is still being passed instead of Mary...
 
Any help is appreciated.
 
Thank you

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.

For more options, visit <a onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;" href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="1qZPqb8yGwwJ">mybatis-user...@googlegroups.com.
For more options, visit <a onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;" href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Calling a function using ognl - parameters are not interpreted...

Frank Martínez
@com.mypackage.utils.MyUtils@userExists is the syntax for static method call

if your method is not static, try

_parameter.userExists(userName, user.department) == true




On Mon, Feb 10, 2014 at 6:07 PM, nk <[hidden email]> wrote:
But my method isn't static...
 

On Monday, February 10, 2014 6:03:39 PM UTC-5, Frank Martinez wrote:
In Java, static methods are not inherited.


On Mon, Feb 10, 2014 at 6:01 PM, nk <[hidden email]> wrote:
Yes, thank you, of course...
 
One more question...  I have another case where the method below (userExists) doesn't exist in the _parameter object but exists in it's parent.
For example if I'm operating on a User object for my current mapper and want to execute a method from the Person object, where User extends Person.
It seems that myBatis can't get to the inherited method, is that so?
 
Thanks so much!
 

On Monday, February 10, 2014 5:39:29 PM UTC-5, Frank Martinez wrote:
Hi NK,

You are mixing OGNL syntax with Parameter binding syntax. Try this instead:

<if test="@com.mypackage.utils.MyUtils@userExists(userName, user.department) == true ">


On Mon, Feb 10, 2014 at 3:57 PM, nk <[hidden email]> wrote:
Hello,
 
Inside my mapper, i would like to call a method on one of my classes but I have trouble passing parameters to it...
 
I have the following:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{user.name}, #{user.department}) == true ">
........ 
</if>
 
It looks like #{user.name} and #{user.department} are not passed properly.  Am i using the right syntax?
If I use #{user.name} as part of my select statement, it works fine, but when passed as a parameter above, the userExists method gets the follwoing {Mary=null}.  While all I want is "Mary".
Looks like i'm not using OGNL syntax correctly.
Or maybe OGNL can't interpret #{user.name}???
 
I tried to use bind as follows:
<bind name="userName" value="user.name" />
 
And then the OGNL would looke like this:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{userName}, #{user.department}) == true ">
 
Inside my userExists method, i see that "{Mary=null}" is still being passed instead of Mary...
 
Any help is appreciated.
 
Thank you

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Calling a function using ognl - parameters are not interpreted...

foxesout
Frank, thanks so much.
This works like a charm.
Appreciate your help!
 

On Monday, February 10, 2014 6:12:10 PM UTC-5, Frank Martinez wrote:
@com.mypackage.utils.MyUtils@userExists is the syntax for static method call

if your method is not static, try

_parameter.userExists(userName, user.department) == true




On Mon, Feb 10, 2014 at 6:07 PM, nk <<a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="s1vesRPSUT8J">nku...@...> wrote:
But my method isn't static...
 

On Monday, February 10, 2014 6:03:39 PM UTC-5, Frank Martinez wrote:
In Java, static methods are not inherited.


On Mon, Feb 10, 2014 at 6:01 PM, nk <[hidden email]> wrote:
Yes, thank you, of course...
 
One more question...  I have another case where the method below (userExists) doesn't exist in the _parameter object but exists in it's parent.
For example if I'm operating on a User object for my current mapper and want to execute a method from the Person object, where User extends Person.
It seems that myBatis can't get to the inherited method, is that so?
 
Thanks so much!
 

On Monday, February 10, 2014 5:39:29 PM UTC-5, Frank Martinez wrote:
Hi NK,

You are mixing OGNL syntax with Parameter binding syntax. Try this instead:

<if test="@com.mypackage.utils.MyUtils@userExists(userName, user.department) == true ">


On Mon, Feb 10, 2014 at 3:57 PM, nk <[hidden email]> wrote:
Hello,
 
Inside my mapper, i would like to call a method on one of my classes but I have trouble passing parameters to it...
 
I have the following:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name}, #{user.department}) == true ">
........ 
</if>
 
It looks like #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name} and #{user.department} are not passed properly.  Am i using the right syntax?
If I use #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name} as part of my select statement, it works fine, but when passed as a parameter above, the userExists method gets the follwoing {Mary=null}.  While all I want is "Mary".
Looks like i'm not using OGNL syntax correctly.
Or maybe OGNL can't interpret #{<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name}???
 
I tried to use bind as follows:
<bind name="userName" value="<a onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fuser.name\46sa\75D\46sntz\0751\46usg\75AFQjCNFu0SPm6QpHZ5742pOucYZFgv7vIQ';return true;" href="http://user.name" target="_blank">user.name" />
 
And then the OGNL would looke like this:
 
<if test="@com.mypackage.utils.MyUtils@userExists(#{userName}, #{user.department}) == true ">
 
Inside my userExists method, i see that "{Mary=null}" is still being passed instead of Mary...
 
Any help is appreciated.
 
Thank you

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.

For more options, visit <a onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;" href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
For more options, visit <a onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;" href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" gdf-obfuscated-mailto="s1vesRPSUT8J">mybatis-user...@googlegroups.com.
For more options, visit <a onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;" href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out.



--
Frank D. Martínez M.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.