Hi, I'm trying to convert an old C1 application in C2, but I found a lot of problems. All session (request/response) management has changed.
For example: with C1 I wrote: <xsp:logic> if ((session.isNew()) and (myVariable == myValue)) { ..... ..... response.sendRedirect(response.encodeURL("My URL")); } </xsp:logic> Now, with C2, how can I do this? I tried with this but without success: <xsp:logic> if ((<session:is-new/>) and (myVariable == myValue)) { ..... ..... response.sendRedirect(response.encodeURL("My URL")); } </xsp:logic> Line 149, column 33: Method sendRedirect(java.lang.String) not found in interface org.apache.cocoon.environment.Response and, ...., another problem: if I write <xsp:logic> if ((session.isNew()) and (myVariable == myValue)) { ..... ..... ..... } </xsp:logic> Cocoon return me: Line 121, column 8: Undefined variable or class name: session why? In the Cocoon examples I read a document like this (whith "session" object used instead of xsp tags) Please, help me! --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.338 / Virus Database: 189 - Release Date: 14/03/02 --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>