Please, I have been fighting with this code so long
...
<?xml version="1.0"?>
<?cocoon-process type="xsp"?> <?cocoon-process type="xslt"?> <?cocoon-disable-caching?> <xsp:page languaje="java" xmlns:xsp="http://apache.org/xsp" xmlns:log="http://apache.org/xsp/log/2.0" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:xsp-cookie="http://apache.org/xsp/cookie/2.0"> <xsp:structure> <xsp:include>org.apache.cocoon.environment.Cookie</xsp:include> <xsp:include>org.apache.cocoon.environment.HttpEnvironment</xsp:include> </xsp:structure> <page> <header/> <title>Login</title> <content>
<xsp:logic>
String cookiename = "CM-Queue"; String queue = <xsp-request:get-parameter name="queue_name"/>; if (!("".equals(queue))){ <xsp-cookie:cookie> <xsp-cookie:name><xsp:expr>cookiename</xsp:expr></xsp-cookie:name> <xsp-cookie:value><xsp:expr>queue</xsp:expr></xsp-cookie:value> <!--24*60*60--> <xsp-cookie:setMaxAge>2*60</xsp-cookie:setMaxAge> </xsp-cookie:cookie> response.sendRedirect("http://www.yahoo.com"); } </xsp:logic> .... (the rest)
</page>
</xsp:page> If I comment the line
response.sendRedirect("http://www.yahoo.com");
it works ...
What's wrong about it?
Thanks
Eduardo.
|