You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Torsten Reiners <tr...@tu-bs.de> on 2002/11/29 11:53:21 UTC

Session-objects in Cocoon using servlets and jsp


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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>