Hello everybody,
I wanted to include Java WebMail Application in one of the my templates. 
First, I used the one that is in Portlet repository, here in jahia.org, but 
this one is a little bit old and I needed source code as well, so I went to 
http://jwma.sourceforge.net/ and I downloaded last version (release 0.98). 
Unfortunately, this version is not prepared to interact with Jahia context, so 
I had to change all the URLs and references to keep the context within Jahia 
(for example using encode.URL(..) and other things).
All is OK now, except when you received a mail that has an image attachment.In 
this case you have 2 options: see the image embebed with the mail or see the 
name of the image like an URL. But none works with Jahia:
In the first case, you only see the typical x meaning that the image is not 
avalaible. 
In the second case, if you clik on the URL to open the image you see a lot of 
strange characters (like image bits as a text)
The curious thing is that if you use this webmail application from outside 
jahia (I mean directly http://localhost/webmail), but with encode.url(...) and 
so on, it works perfectly, so the problem relies in something that Jahia makes.
I think Jahia for no apparent reason, doesn't take into account the MIME-type 
is image and it tries to show like html or text.
I've tried to put, before painting the image in jsp file, 
response.setContentType("image"), but it doesn´t work. Also in java class where 
images attachments are treated, but nothing...

Any idea will be truly appreciated becasue after 3 days I don´t find the 
reason/solution....

Thank you very much in advance
Regards,
Miriam

Reply via email to