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

print it out just nice. However, when I try

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

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

/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.


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

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

Reply via email to