cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Tatarkin <d...@sweb.ru>
Subject How to access authentication data from xsp?
Date Wed, 14 Jul 2004 13:27:15 GMT

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message