Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

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 02-16-2009, 01:37 PM
Senior Member
 
Posts: 51
Default java and zimlets

I am looking at the sourceforge zimlet and I see there is a welcome.jsp in there. Is it possible to use jsp rather than JS to do zimlets? I have much of my code needed alredy written in java, and it looks like I can integrate with it much easier than rewriting everything in JavaScript.

If it is possible please point me in the right direction.

Sage
Reply With Quote
  #2 (permalink)  
Old 02-16-2009, 08:36 PM
Trained Alumni
 
Posts: 343
Default

Hiya,

I'm no expert, but have done a little Zimlet programming. As far as I understand....you will probably need a little Javascript....but you can do all the heavy programming in JSP.

For mine, the Javascript handles all the UI operations, but my JSP is where all the external calls and programming work gets done.

You might be able to get by with just the Zimlet XML if all you need is a Zimlet icon and a menu item or two. The moment you get any more complicated than that in the UI, you will have to use Javascript. That's been my experience anyway.

Matt
Reply With Quote
  #3 (permalink)  
Old 02-16-2009, 11:24 PM
Senior Member
 
Posts: 51
Default

I have read through the zimlet developement guide and it only talks about JavaScript. Can you give me a quick intro on how to even connect the JavaServerPage to the zimlet.

All of my data will be out from zimbra, I do not plan to display anything other than a popup of the application with all the data from the zimbra calendar filled in for my users.

Thanks
Sage
Reply With Quote
  #4 (permalink)  
Old 02-17-2009, 06:07 AM
Senior Member
 
Posts: 51
Default

I moved the com_zimbra_jspsample into the _dev directory and undeployed it from the admin console.

Code:
HTTP ERROR: 404
NOT_FOUND
RequestURI=/service/zimlet/com_zimbra_jspsample/sample.jsp
Powered by Jetty://
But my jsp is in
/service/zimlet/_dev/com_zimbra_jspsample/sample.jsp

So I modify the xml file and reload the web browser. I then get
Code:
HTTP ERROR: 404
NOT_FOUND
RequestURI=/service/_dev/zimlet/com_zimbra_jspsample/sample.jsp
Powered by Jetty://
What should I be doing to get the jsp to be used?
Reply With Quote
  #5 (permalink)  
Old 02-17-2009, 06:49 AM
Senior Member
 
Posts: 51
Default

looking around I found this file

Code:
/opt/zimbra/./jetty-6.1.5/work/service/jsp/org/apache/jsp/zimlet/com_005fzimbra_005fjspsample/sample_jsp.class
I did not find s similar one in the _dev directory
Code:
./jetty-6.1.5/work/service/jsp/org/apache/jsp/zimlet/com_005fzimbra_005fjspsample/sample_jsp.class
How do I compile the jsp file with zimbra other than to remove and redeploy with a new zip file?

Sage
Reply With Quote
  #6 (permalink)  
Old 03-27-2009, 11:55 AM
New Member
 
Posts: 4
Default

I think you want

<actionUrl target="/service/zimlet/_dev/com_zimbra_jspsample/sample.jsp"/>
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.