cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Wolpert <wolp...@radiancegroup.com>
Subject RE: redirect
Date Tue, 01 Feb 2000 22:43:18 GMT
I think I found a bug... I tried the same as below, (Going to
http://www.yahoo.com/ instead...)
and I got:
java.lang.Exception: XSP Java Compiler: Compilation failed for
_testthis.java
      23: Type expected.
                response.sendRedirect("http://www.yahoo.com/");  
                                      ^
      1 error

              at
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJa
vaProcessor.java, Compiled Code)
              at java.lang.Exception.(Exception.java, Compiled Code)
              at
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJa
vaProcessor.java, Compiled Code)
              at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java,
Compiled Code)
              at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
              at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
              at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
              at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
              at java.lang.Thread.run(Thread.java:479)


I took the example below, using Cocoon 1.6.1.

-----Original Message-----
From: Stefano Mazzocchi [mailto:stefano@apache.org]
Sent: Tuesday, February 01, 2000 7:55 AM
To: cocoon-users@xml.apache.org
Subject: Re: redirect



<?xml version="1.0"?>
<?cocoon-process type="xsp"?>

<xsp:page
    language="java"
    xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>
  <xsp:logic>
   response.sendRedirect("/test.xml");
  </xsp:logic>
</xsp:page>

the above should be enough. (if not, it's a bug)


Mime
View raw message