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 08-24-2007, 05:02 AM
Junior Member
 
Posts: 9
Default Get message details to JSP

Hello!

I have a problem with take message details (id, subject, from, to, body, attachment) to JSP file. I wrote the plugin and I use drag&drop function to put message to plugin.
I know that I should use SOAP - so If You have any tutorials or solution - I'll be glad.

Best regards
rkmorgan
Reply With Quote
  #2 (permalink)  
Old 08-24-2007, 08:26 AM
Zimbra Employee
 
Posts: 26
Default

You should be able to grab the JSPSample Zimlet out of the open source repository, and check out how we do it in that zimlet. This should give you an idea of how to grab these items through JSPs. The repository info is found here:

SourceForge.net: Subversion
Reply With Quote
  #3 (permalink)  
Old 08-24-2007, 08:54 AM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by rkmorgan View Post
Hello!

I have a problem with take message details (id, subject, from, to, body, attachment) to JSP file. I wrote the plugin and I use drag&drop function to put message to plugin.
I know that I should use SOAP - so If You have any tutorials or solution - I'll be glad.

Best regards
rkmorgan
Take a look at the taglibs to pull data from Zimbra in a JSP manner. I believe there is a sample Zimlet that does almost exactly what you want to do, without having to worry about the SOAP.
Reply With Quote
  #4 (permalink)  
Old 08-25-2007, 12:36 AM
Junior Member
 
Posts: 9
Default Get message details to JSP

Hi!
Thanks for answer!!

My plugin has been based on com_zimbra_jspsample exmaple package. Yes I get ID and Subject of message correct, but when I try get other message information like: body, from, to, date the results are:

id: 282
subject: Zimlets-+test
name:
%28UNDEFINED+-+str+%27%24%7Bobj.name%7D%27+obj+%27%5Bobject+Obje ct%5D%27%29
path: %28UNDEFINED+-+str+%27%24%7Bobj.path%7D%27+obj+%27%5Bobject+Obje ct%5D%27%29
body:
from: %28UNDEFINED+-+str+%27%24%7Bobj.from%7D%27+obj+%27%5Bobject+Obje ct%5D%27%29
to: %28UNDEFINED+-+str+%27%24%7Bobj.to%7D%27+obj+%27%5Bobject+Object %5D%27%29[/SIZE][/SIZE][/SIZE][/SIZE]

I add new params to xml file - but the results are not good.
So - that is my problem. If You have any example codes or solution - pleace write.

Best regards
rkmorgan
Reply With Quote
  #5 (permalink)  
Old 08-25-2007, 11:17 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by rkmorgan View Post
Hi!
Thanks for answer!!

My plugin has been based on com_zimbra_jspsample exmaple package. Yes I get ID and Subject of message correct, but when I try get other message information like: body, from, to, date the results are:

id: 282
subject: Zimlets-+test
name:
%28UNDEFINED+-+str+%27%24%7Bobj.name%7D%27+obj+%27%5Bobject+Obje ct%5D%27%29
path: %28UNDEFINED+-+str+%27%24%7Bobj.path%7D%27+obj+%27%5Bobject+Obje ct%5D%27%29
body:
from: %28UNDEFINED+-+str+%27%24%7Bobj.from%7D%27+obj+%27%5Bobject+Obje ct%5D%27%29
to: %28UNDEFINED+-+str+%27%24%7Bobj.to%7D%27+obj+%27%5Bobject+Object %5D%27%29[/SIZE][/SIZE][/SIZE][/SIZE]

I add new params to xml file - but the results are not good.
So - that is my problem. If You have any example codes or solution - pleace write.

Best regards
rkmorgan
What source code version are you using?
Reply With Quote
  #6 (permalink)  
Old 08-27-2007, 12:07 AM
Junior Member
 
Posts: 9
Default Get message details to JSP

The com_zimbra_jspsamle version is: 1.0

<zimlet name="com_zimbra_jspsample" version="1.0" description="JSPSample">


When jspsample plugin has been loaded to ZIMBRA and I drag&drop message to this plugin, I receive correct ID and SUBJECT, PATH and NAME are empty.
Reply With Quote
  #7 (permalink)  
Old 08-27-2007, 08:53 AM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by rkmorgan View Post
The com_zimbra_jspsamle version is: 1.0

<zimlet name="com_zimbra_jspsample" version="1.0" description="JSPSample">


When jspsample plugin has been loaded to ZIMBRA and I drag&drop message to this plugin, I receive correct ID and SUBJECT, PATH and NAME are empty.
Sorry, I meant to ask what version of the Zimbra Server are you running.
Reply With Quote
  #8 (permalink)  
Old 08-28-2007, 05:39 AM
Junior Member
 
Posts: 9
Default Get message details to JSP

Zimbra server version is 4.5
Reply With Quote
  #9 (permalink)  
Old 09-03-2007, 11:57 PM
Junior Member
 
Posts: 9
Default Get message details to JSP

Hello!! So - have You got any solution of my problem. It is very important for me.
Thanks for any help!

Best regards
rkmorgan
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.