Difference between revisions of "Zimlet JSP"

Line 50: Line 50:
== See also ==
* [[ZimletJSP]] contains outdated information about ZCS 4.5 and before.
{{Article Footer||7/16/2009}}
{{Article Footer||7/16/2009}}

Revision as of 08:57, 17 August 2009

A Zimlet JSP implements any server side data retrieval and manipulation for the actions to be performed on the client. The Zimlet JSP code may use any protocol or API needed to fetch data or act on a user’s selection.

For example, for a UPS package tracking Zimlet, a Zimlet JSP implementation may make a call to the UPS’ tracking information API with the matched tracking number in order to get package status and/or delivery information for displaying to the user. The tracking information would be returned to the client for possible display in a context object tool tip.

Custom Zimbra Tag Library

A Zimlet JSP implementation can include custom tags provided by the Zimbra Tag Library. Such tags can be used to build powerful server side plug-ins based on JSP, which complements the Zimlets by off-loading expensive tasks from the browser, providing better performance, and simplifying client-server communication. Many of the Zimbra resources are made available by Zimbra Tag Library. Refer to zimbra.tld for the details.

Available resources

  • message
  • conversation
  • contact
  • note
  • property
  • zimletconfig

In order to use the tags from Zimbra Tag Library, the tag library description file has to be declared at the top of JSP.

<%@ taglib uri="/WEB-INF/zimbra.tld" prefix="z" %>> Then the Zimbra custom tags can be used in the JSP.

Then the Zimbra custom tags can be used in the JSP

 <table border="1">
   String msgid;
   String[] msgids = { "488", "489", "405" };
     for (int i = 0; i < msgids.length; i++) {
         msgid = msgids[i];
      <td><%= msgid %></td>
      <td><z:message id='<%= msgid %>' field="subject"/></td>
      <td><z:message id='<%= msgid %>' field="from"/></td>
      <td><z:message id='<%= msgid %>' field="to"/></td>
      <td><z:message id='<%= msgid %>' field="cc"/></td>
      <td><z:message id='<%= msgid %>' field="bcc"/></td>

See also

  • ZimletJSP contains outdated information about ZCS 4.5 and before.
Verified Against: Date Created: 7/16/2009
Article ID: https://wiki.zimbra.com/index.php?title=Zimlet_JSP Date Modified: 2009-08-17

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search