cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Stocker" <chris.stoc...@gmx.at>
Subject access session in xsp
Date Wed, 05 Jun 2002 08:18:22 GMT
hi!

i use weblogic6.0sp2, cocoon2.0.2 and win2000

i want to access the session in an xsp.


<xsp:page
	language="java"
	xmlns:xsp="http://apache.org/xsp"
	xmlns:xsp-session="http://apache.org/xsp/session/2.0"
>

<xsp:logic>
	org.apache.cocoon.environment.http.HttpSession session = 
 
(org.apache.cocoon.environment.http.HttpSession)request.getSession();
	
	String foo = (String)session.getAttribute("errorData");
<xsp:logic>
.
.
.

</xsp:page>


but i always get the following error-message (also if
i comment the line --> String foo =
(String)session.getAttribute("errorData");


Language Exception 

More precisely:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error while
instantiating org\apache\cocoon\www\registrierung\error_xsp:
java.lang.NullPointerException 


any idea

greetings, chris


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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