cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bonnin" <>
Subject xsp:expr & esql
Date Tue, 24 Jul 2001 07:20:28 GMT
I want to use an xsp:expr tag within an esql:query tag but my solution
doesn't work. This is the "skeleton" of my code:

        HttpSession ses = request.getSession(false);
        InfoUser userInfo = (InfoUser) ses.getValue("Informations");
        String id = (String) userInfo.getUserId(); <!-- Here is all OK -->



 update users set country = '
  <xsp:expr>request.getParameter("country")</xsp:expr>' where user =
'<xsp:expr>id</xsp:expr>' and password = 'd'

the java compiler return me the following error:

java.lang.Exception: XSP Java Compiler: Compilation failed for
113: Undefined variable or class name: userInfo

      + userInfo.getUserId()


C:\foo\Tomcat\repository\_C_\_foo\_Tomcat\_webapps\_Cocoon\_samples\_Smit\_c uses or overrides a deprecated API.  Recompile with
"-deprecation" for details.

1 error, 1 warning

 at, Compiled Code)
 at java.lang.Exception.(, Compiled Code)
 at, Compiled Code)
 at org.apache.cocoon.processor.xsp.XSPProcessor.process(,
Compiled Code)
 at org.apache.cocoon.Engine.handle(, Compiled Code)
 at org.apache.cocoon.Cocoon.service(, Compiled Code)
 at javax.servlet.http.HttpServlet.service(
 at org.apache.tomcat.core.ServletWrapper.doService(,
Compiled Code)
 at org.apache.tomcat.core.Handler.service(, Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(,
Compiled Code)
Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(,
Compiled Code)
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC, Compiled Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(,
Compiled Code)
 at org.apache.tomcat.util.ThreadPool$,
Compiled Code)
 at, Compiled Code)

Why? Is this a "scope" problem? (I think)
How can I do?


To unsubscribe, e-mail:
For additional commands, email:

View raw message