Re: Directory for LDAP and JAhia Database search

Thomas Draier <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Hi,
user_search.jsp is used in jahia administration, and it won't work as  
is in a template. All the code used to generate this page is in  
org.jahia.admin.users.ManageUsers, you can find there how to get  
something like "providerList" and "resultList". If you want to do a  
simple user search, you can directly use the class  
org.jahia.data.viewhelper.principal.PrincipalViewHelper.
thomas

Le 5 juil. 05 à 14:59, Gourichon Fabrice a écrit :

> Hi all,
>
> I'm trying to develop a template in which a user can search a  
> personn in a LDAP or in the Jahia Database .
>
> To do this, I would want to exploit the "manage users" part of  
> Jahia administration in which it works well already.I used the  
> user_search.jsp's file code in my template.
> I would appreciate that you can say to me if it is the appropriate  
> file to modify.
>
> At the start of the code, there is this declaration
> Vector providerList = (Vector) request.getAttribute( "providerList" );
> The problem is request.getAttribute( "providerList" ) is null in  
> the new context.
> I would appreciate to Know how and where  the getAttribute's  
> parameter "providerList" is defined.
> It is the same problem for another part of this file
> Set resultSet = (Set)request.getAttribute( "resultList" );
>
> Thanks in advance
> Fabrice
>
>
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!  
> Messenger
> Téléchargez le ici !
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.