Results 1 to 9 of 9

Thread: Developer Directory

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    3

    Default Developer Directory

    It seems that the jsp pages are cached also if you're using these pages inside the _dev directory. I installad a sample inside the:

    C:\Users\Administrator\AppData\Local\Zimbra\Zimbra Desktop\zimlets-deployed\_dev

    directory, but if i change the jsp content does not reflect a change into the browser. I've installed the "com_zimbra_example_simplejspasync" example.
    Someone can help me ?

    Thanks

    alle

  2. #2
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    I am not sure about ZimbraDesktop On Windows.
    But could you try
    C:\Users\Administrator\AppData\Local\Zimbra\Zimbra Desktop\data\tmp\jetty\zimlet , which should inlude compiled jsp files.
    You will find the one and delete it. Then restart you ZD.

  3. #3
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    3

    Default

    unbelievable ... i deleted the directory you told me (C:\Users\Administrator\AppData\Local\Zimbra\Zimbr a Desktop\data\tmp\jetty\zimlet\*) ... then i changed the text into the file located in:
    C:\Users\Administrator\AppData\Local\Zimbra\Zimbra Desktop\zimlets-deployed\_dev\com_zimbra_example_simplejspasync\js pfile.jsp
    nothing has been changed ... show always the string "hello world !"
    any ideas ?

    thanks

    Alessandro

  4. #4
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    Could you restart ZD??
    Did you find any files under
    C:\Users\Administrator\AppData\Local\Zimbra\Zimbr a Desktop\data\tmp\jetty\zimlet\* ?

  5. #5
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    3

    Default

    I didn't restart ZD, i resterted it and work, but ... working in these mode is terrific !, because i have to restart for each change to the jsp the ZD !
    There's another method to work with ZD ? without restarting the application ?

    thanks

    alessandro

  6. #6
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    I guess you can do that with jetty's configuration.
    How about checking this
    Jsp Configuration - Jetty - Codehaus.

    And jetty's config file which could be related to zimlet are here
    C:\Users\Administrator\AppData\Local\Zimbra\Zimbr a Desktop\jetty\webapps\service\WEB-INF\web.xml
    and
    C:\Users\Administrator\AppData\Local\Zimbra\Zimbr a Desktop\jetty\etc\webdefault.xml

  7. #7
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    3

    Default

    yukata,

    many many thanks.
    Can i ask you another question ? can i work inside the zimlet with jquery ?
    Thanks

    Alessandro

  8. #8
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    It is my presure.
    I hope you enjoy hacking zimbra.

    I do not know much about jquery.
    But from my understanding you can use third party js library in your zimlet.
    You can see that com_zimbra_ysearch zimlet.
    It is just the matter of Namesapce.
    If there is no namespace confliction, it should work.

    In that zimlet you load the library with http directory from outside of zimbra at the runtime.
    But also you download that in advance and deploy that in Zimbra so that you can use that just including that to zimlet's config xml file.

  9. #9
    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    3

    Default

    Thanks yukata,
    yes working with zimlets is great. I'm working on a project to build some zimlets to give services: SMS, FAX, VoIP inside ZCS and ZD. For my personal opinion i see some limitation in zimlets such as the possibility to work with the templates directly from the html (in this case i have to compile the templates as javascript, and for a big project this can be useful to have the html separated from the javascript).
    Anyway my project is to build some pages in jsp to make the request to an external uri and return me XML to work with jquery, because is very easy work with it. i would like to publish these zimlets to make available to everyones.
    Thanks

    Alessandro

Similar Threads

  1. Zimbra with Centos 6 as active directory problem
    By gyt in forum Administrators
    Replies: 5
    Last Post: 03-10-2014, 06:01 AM
  2. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  3. Replies: 5
    Last Post: 03-01-2007, 02:20 AM
  4. Help: Fullbackup error!
    By victorLeong in forum Administrators
    Replies: 1
    Last Post: 08-02-2006, 01:56 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
  •