You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Henrik Hofmann <He...@creon-it.com> on 2001/10/25 14:54:08 UTC
trying to access session object
Hi ,
Im trying to access the session object under cocoon2 rc1.
My xsp code looks like this,
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page
language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:util="http://apache.org/xsp/util/2.0"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:xsp-response="http://apache.org/xsp/response/2.0"
xmlns:log="http://apache.org/xsp/log/2.0"
>
<xsp:structure>
<xsp:include>org.apache.cocoon.environment.*</xsp:include>
</xsp:structure>
<page>
<xsp:logic>
Session session = request.getSession(true);
</xsp:logic>
</page>
</xsp:page>
It compiles fine but every time I try to access it I get this error
message.
Exception in ServerPagesGenerator.generate()
java.lang.IllegalStateException: Cannot create a session after the
response has been committed
bye