cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Iteration inside xsp
Date Tue, 23 Apr 2002 19:54:19 GMT
> From: Volker Schneider [mailto:volker.schneider@danet.de]
> 
> Hi Harry,
> 
> thank you for your reply. It tried the "request" variable. I tried to
get
> the session from the request but it didn't work.
> <?xml version="1.0"?>
> 
> <xsp:page xmlns:xsp="http://apache.org/xsp"
>           xmlns:xsp-session="http://apache.org/xsp/session/2.0"
>           create-session="true">
> 
> <xsp:structure>
>   <xsp:include>org.apache.cocoon.environment.Request</xsp:include>
>   <xsp:include>org.apache.cocoon.environment.Session</xsp:include>
> </xsp:structure>

  <xsp:logic>
    // Class declarations
    private static int counter = 0;
  </xsp:logic>

  <my-doc-root>
 
>   <xsp:logic>
>     //---- get the request
>     request.getSession();
> 
>   </xsp:logic>

  </my-doc-root>

> </xsp:page>
> 
> The error message was:
> 
> org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error
compiling
> ShowRoute_xsp:
> Line 70, column 22: <identifier> expected
> Line 70, column 12: cannot access class getSession; file
> request\getSession.class not found
> Line 0, column 0:
> 2 errors
> 
> Do you have an idea, what could be the reason for this?

Yes. See above.

Vadim


> Thank you, best regards
> - Volker -
> 


---------------------------------------------------------------------
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