cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Reiners <trein...@tu-bs.de>
Subject Session-objects in Cocoon using servlets and jsp
Date Thu, 28 Nov 2002 12:25:27 GMT
Hi,

we have a major problem and do not know if there is a simple solution.
Hope that
somebody has an idea. The scenario is as follows:

we realized a login as well as some other things using jsp and servlets.
The jsp are read by th jsp-reader

  <map:match pattern="jsps/*">
        <map:read type="jsp" mime-type="text/html" src="/jsps/{1}"/>
  </map:match>

Furthermore, we have an session-object that is used by the jsps and cocoon
to communicate with each other. Using just jsp and cocoon it is working well,
i.e., the session object can be used from both places (coccoon,jsp with
same session id).


We need to use a servlet to control some processes (i.e., jsp) and,
therefore,have to run the servlet in the same context as the jsp or cocoon.
Currently, the servlet is having it's own session object with its own session id and, therefore,
the cocoon-process can not communicate with the servlet. Also, the jsps
get the session-object and its id from the servlet and we can not use the
seession-object anymore for the communication.

Is there any way of running the servlet in the same context as cocoon/jsp?
Do I have to declare the servlet in a special way in web.xml or
sitemap.xmap?

I am not sure if the scenario is understandable. Please let me know if you
need more information about the configuration (BTW, we use cocoon 2.0.3).

Thanks,

Torsten



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message