Results 1 to 1 of 1

Thread: problem: adding my own taglib

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    2

    Unhappy problem: adding my own taglib

    hello,
    I am trying to change the calendar to jalali in Standard(HTML) version of zimbra 8.
    what I have done til now is as follows:
    1. I have added a java class to /WEB_INF/classes/com/zimbra/kabuki/tools/jalali
    jalali is a subdirectory which i have created under tools dir
    here is the source code of JalaliCalendar.java :

    https://github.com/amirmehdizadeh/JalaliCalendar

    then compiled this code to .class :javac JalaliCalendar.java and the result was 2 files:
    JalaliCalendar.class & JalaliCalendar$YearMonthDate.class

    2.add a new .tld file named jTld.tld to /opt/zimbra/jetty/webapps/zimbra/WEB-INF/tlds :

    <?xml version="1.0" encoding="UTF-8" ?>
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0">

    <description>A tag library exercising SimpleTag handlers.</description>
    <tlib-version>1.0</tlib-version>

    <short-name>jtld</short-name>
    <uri>https://192.168.0.89/jTld</uri>
    <function>
    <name>gregorianToJalali</name>
    <function-class>com.samanpr.jalalicalendar.JalaliCalendar</function-class>
    <function-signature>YearMonthDate gregorianToJalali(YearMonthDate gregorian)</function-signature>
    </function>
    </taglib>


    note: the web address of my zimbra is https://192.168.0.89/

    3. add a line to /opt/zimbra/jetty/webapps/zimbra/h/calendar as follows;
    <%@taglib uri="https://192.168.0.89/jTld" prefix="mt" %>

    i thought that this way it would be possible to call gregorianToJalali function inside /h/calender like:
    ${mt:gregorianToJalali('20140428')} but I can not call gregorianToJalali function.


    can anybody help me as soon as possible please??????????
    Last edited by seyyedi; 04-27-2014 at 11:59 PM.

Similar Threads

  1. Adding new theme problem
    By khodaee in forum Administrators
    Replies: 9
    Last Post: 02-12-2011, 09:17 AM
  2. Zimbra Taglib support missing for Zimlets in ZCS 6?
    By chlauber in forum Developers
    Replies: 2
    Last Post: 10-03-2009, 02:00 PM
  3. Problem adding a Calendar from SVN.
    By myles in forum Users
    Replies: 8
    Last Post: 07-13-2006, 03:03 PM
  4. Problem Adding Aliases
    By myles in forum Administrators
    Replies: 5
    Last Post: 06-23-2006, 11:05 PM
  5. Problem when adding new RSS feed
    By fmodola in forum Users
    Replies: 13
    Last Post: 04-11-2006, 06:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •