Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-2008, 09:45 AM
Trained Alumni
 
Posts: 343
Default Where do I start...

I posted a couple days ago asking about how to query LDAP with JSP....and I think I maybe know how that gets done. What I'm unsure of is how to put the backend JSP LDAP query together with the .js file that is going to present the results to the user in Zimbra.

I'm trying to start very basic here.....I just want to create a Zimlet Icon that when you click on it once, it sends an LDAP query out to the external LDAP with my username and returns some attribute/value pair back to the screen in a small output box.

How do I tell the Zimlet .js file to send the username to the Zimlet .jsp file for the backend query...an include of some kind?

Matt
Reply With Quote
  #2 (permalink)  
Old 10-01-2008, 09:48 AM
Trained Alumni
 
Posts: 343
Default

Looking at the com_zimbra_jspsample Zimlet....maybe I don't need a Javascript file....and just need to use an XML file to create the Zimlet actions I need for the user?

Matt
Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 10:03 AM
Trained Alumni
 
Posts: 343
Default

Something like this? Where do I find what "actionType" and "canvasType" I need here?

Code:
<zimlet name="edu_wiu_email_starnum" version="1.0" description="EmailStarnum">

<zimletPanelItem label="EmailStarnum"> 
  <toolTipText>
  Click to query LDAP...
  </toolTipText>

  
  <someAction type="...">
    <canvas type="..." width="300" height="200"/>
    <actionUrl target="/service/zimlet/_dev/edu_wiu_email_starnum/ldap.jsp">
      <param name="username">${obj.uname}</param>
    </actionUrl>
  </someAction>
  
</zimletPanelItem>

</zimlet>
...and then the JSP would do the query and return the output back to the screen somehow?

Matt
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.