Webapps using Jahia Api

besson baptiste <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Hello,

I was just wondering what is the best way to import jahia packages from my webapp classes, for instance to get the Jahia user names :
 <% 
      JahiaUserManagerService jums = ServicesRegistry.getInstance().getJahiaUserManagerService();
      Vector v = jums.getUserList();
      Iterator it = v.iterator();
      while(it.hasNext()){
         out.println(jums.lookupUser((String)i.next()).getName());
      }
  %>

Do I have to create a new template just for that, so that it is in Jahia context and get the Jahia Api ?
Also do I put in the jar (the one containing agenda.class in template  guide chap 7)
only the classes of my webapp or all the directory (WEB-INF, web.xml,  jsp...) ? 
 I read quickly the template guide (I don't need to create new templates) but  I'm not very  sure about  it...

Thank you. 

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