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??????????