hi,
I'm getting compilation errors when I try to access a session-value by using
String language = (String)<session:get-attribute name="LANGUAGE_FROM_TO"/>;
My xsp is defined as :
<xsp:page
language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:template="http://thales-is.com/cocoon/template/1.0"
xmlns:session="http://apache.org/xsp/session/2.0"
xmlns:xsp-request="http://apache.org/xsp/request/2.0">
The stacktrace shows :
ERROR (2002-08-28) 15:30.04:399 [sitemap.transformer.cinclude]
(/twp/thales-twp/page/) HttpProcessor[8080][4]/CIncludeTransformer: Could not stream
input
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling translate_xsp:
Line 111, column 47: variable session not found in class
org.apache.cocoon.www.thales_twp.resources.xsp.translate_xsp
Line 0, column 0:
When I change session into xsp-session as done in the 'simple xsp page with session
id' example on http://xml.apache.org/cocoon/userdocs/xsp/sessions.html
I get :
ERROR (2002-08-28) 15:32.11:210 [sitemap.transformer.cinclude]
(/twp/thales-twp/page/) HttpProcessor[8080][4]/CIncludeTransformer: Could not stream
input
org.apache.cocoon.ProcessingException: The prefix "xsp-session" for element
"xsp-session:get-attribute" is not bound.: org.xml.sax.SAXParseException: The prefix
"xsp-session" for element "xsp-session:get-attribute" is not bound.
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:204)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:202)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:278)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:141)
Thanks,
Geert
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>