Hello,
How to access authentication data from xsp? I tried the next page and it's not working. I'm using cocoon version 2.1.5 .
<xsp:page
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-session-fw="http://apache.org/xsp/session-fw/1.0">
<page> <content>
<xsp:logic>
String id = <xsp-session-fw:getxml context="authentication" path="/authentication/ID"/> ;
<xsp:expr>id</xsp:expr>
</xsp:logic>
</content> </page>
</xsp:page>
my pipline:
<map:match pattern="protected">
<map:act type="auth-protect">
<map:parameter name="handler" value="dealers"/>
<map:generate src="docs/protected.xsp" type="serverpages"/>
<map:transform type="session"/>
<map:transform src="cocoon://default.xsl"/>
<map:transform type="encodeURL"/>
<map:serialize/>
</map:act>
<!-- something was wrong, redirect to login page -->
<map:redirect-to uri="login"/>
</map:match>and got :
Description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling protected_xsp: ERROR 1 (org/apache/cocoon/www/dealers_auth/docs/protected_xsp.java): ... ( id ) // start error (lines 326-326) "Syntax error on keyword "this"; "=", "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|=", "++", "--" expected" this.characters("\n\n "); // end error this.contentHandler.endElement( "", ... Line 326, column 0: Syntax error on keyword "this"; "=", "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|=", "++", "--" expected
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
