jndi-taglib and scripting variables

2007-07-26 Thread Iikku Mattila

Hi all,

I have a portal with a jsp channel in which I use the jndi-taglib. I'm 
trying to do a ldap-search with the portal user's userid. I get the id 
from elsewhere and both


jx:expr value=$userid /   and
%=userid%

print it out just nice. However, when I try

jndi:search id=searchResult contextRef=ldapContext 
filter=uid=%=userid% searchScope=subtree 

/jndi:search

or filter=uid=jx:expr value=$userid / things don't work the way they 
should. With jx:expr it says


com.sun.portal.providers.jsp.jasper3.jasper.compiler.ParseException: 
/etc/opt/SUNWps/desktop/*/*/content.jsp(31,91) Attribute 
$userid has no value


and with %=userid% I just get an empty searchResult. It surely must be 
possible to give the id as a parameter to the filter somehow? Any ideas?


Iikku

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jndi-taglib and scripting variables

2007-07-26 Thread Iikku Mattila

On Thu, 26 Jul 2007, Kris Schneider wrote:


Try: filter='%= uid= + userid %'

In other words, the scriptlet expression must appear by itself.

Thank you! It worked and wouldn't ever crossed my mind, though I spent 
hours on this.


Iikku


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jndi-taglib and scripting variables

2007-07-26 Thread Kris Schneider

On 7/26/07, Iikku Mattila [EMAIL PROTECTED] wrote:

Hi all,

I have a portal with a jsp channel in which I use the jndi-taglib. I'm
trying to do a ldap-search with the portal user's userid. I get the id
from elsewhere and both

jx:expr value=$userid /   and
%=userid%

print it out just nice. However, when I try

jndi:search id=searchResult contextRef=ldapContext
filter=uid=%=userid% searchScope=subtree 
/jndi:search

or filter=uid=jx:expr value=$userid / things don't work the way they
should. With jx:expr it says

com.sun.portal.providers.jsp.jasper3.jasper.compiler.ParseException:
/etc/opt/SUNWps/desktop/*/*/content.jsp(31,91) Attribute
$userid has no value

and with %=userid% I just get an empty searchResult. It surely must be
possible to give the id as a parameter to the filter somehow? Any ideas?


Try: filter='%= uid= + userid %'

In other words, the scriptlet expression must appear by itself.


Iikku


--
Kris Schneider mailto:[EMAIL PROTECTED]
directThought  http://www.directThought.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI-taglib search tag returns null

2007-07-26 Thread Iikku Mattila

On Wed, 25 Jul 2007, Henri Yandell wrote:


On 7/24/07, Iikku Mattila [EMAIL PROTECTED] wrote:

jndi:search id=baz contextRef=test filter=uid=pohjus
searchScope=subtree
/jndi:search

This seems a tad silly to me and took quite a few hours to come up with.
Well, works now!


Which server/server-version are you running it on?


Sun Java System Application Server Platform Edition 9.0_01


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]