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-24-2011, 06:57 AM
Junior Member
 
Posts: 7
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
Reply With Quote
  #2 (permalink)  
Old 10-24-2011, 07:33 AM
Project Contributor
 
Posts: 92
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.
Reply With Quote
  #3 (permalink)  
Old 10-24-2011, 08:56 AM
Junior Member
 
Posts: 7
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
Reply With Quote
  #4 (permalink)  
Old 10-24-2011, 09:05 AM
Project Contributor
 
Posts: 92
Default

Could you restart ZD??
Did you find any files under
C:\Users\Administrator\AppData\Local\Zimbra\Zimbr a Desktop\data\tmp\jetty\zimlet\* ?
Reply With Quote
  #5 (permalink)  
Old 10-24-2011, 10:49 AM
Junior Member
 
Posts: 7
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
Reply With Quote
  #6 (permalink)  
Old 10-24-2011, 11:33 AM
Project Contributor
 
Posts: 92
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
Reply With Quote
  #7 (permalink)  
Old 10-24-2011, 11:35 AM
Junior Member
 
Posts: 7
Default

yukata,

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

Alessandro
Reply With Quote
  #8 (permalink)  
Old 10-24-2011, 12:00 PM
Project Contributor
 
Posts: 92
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.
Reply With Quote
  #9 (permalink)  
Old 10-24-2011, 12:29 PM
Junior Member
 
Posts: 7
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
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.