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 23:14:41 GMT
It worked once I added in the <DOCUMENT> tags... Thanks.

-----Original Message-----
From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
Sent: Tuesday, February 01, 2000 4:11 PM
To: cocoon-users@xml.apache.org
Subject: Re: redirect


Ed Wolpert wrote:

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

I just wrote this which works fine. make sure you don't have an old class
file in the repository path that is being accessed:

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>
<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
    <DOCUMENT>
        <xsp:logic>
            response.sendRedirect("http://www.yahoo.com");
        </xsp:logic>
    </DOCUMENT>
</xsp:page>


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