You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by MYRIAM15 <MY...@terra.es> on 2005/07/07 13:14:07 UTC
sharing sessions
Hello everybody,
I use Jahia as content manager and portal server (it si similar to
Pluto I think or at least it has some similar features). Inside it I
have a porlet, Java WebMail Application. Unfortunately, the last
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).
The problem comes when a mail has an attachment (images, pdf file..):
After reading and posting I found that with binary data I shouldn't use
encodeURL method. I should link directly to the servlet, but in this
case, my session is lost (I used Tomcat 4) and the webmail application
requires user to log in again.
Now I changed to Tomcat 5.5.9 (and I made all changes in server.xml and
web.xml files) which, according to I've read, is able to share session
between portal and servlet, but I'm still with the same problem of
Tomcat 4, so I think I'm missing something.
These are the steps the porlet follows:
1.- I click in the message i want to see and message.jsp page is
called. This jsp page (if an attachment is included) calls a method of
class X, which returns something like
<img border="0" src="/webmail/jwma?
acton=message&todo=displaypart&number=0">
2.- Jwma is the controller servlet and according to the parameters, its
displaypart method should be called, but before, an exception is thrown
because the servlet "thinks" that the user is not authentificated and
it redirects to the login wiew.
Is it neccesary to pass the session from class X to controller servlet
in some way?
Any suggestion would be truly apreciated...
Thank you very much in advance,
Rgds,
Miriam