cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject AW: cvs commit: xml-cocoon/webapp/docs/samples/xsp cookie.xsp
Date Wed, 18 Apr 2001 14:05:59 GMT
What I did forget to tell you:

If you don't care about the environment you are currently running in
(commandline, servlet or whatever) and you know that you always use
the servlet environment (if you are comming from C1 then this might
be the case anyway), you can still use one trick:

You can cast the Response object to the org.apache.cocoon.environment.http.HttpResponse
object and use the old sendRedirect() method. But this only works with servlets!!

I know this a bad thing to do, but it might be another way for migrating.


> Carsten Ziegeler wrote:
> Hi!
> This is the final step for being independent of the javax.servlet classes.
> I added the Cookie and Session class to the environment. Both have nearly 
> the same functionality than their servlet pendants.
> I also cleaned up the environment by removing some of the methods in the
> Request und Response objects, mainly (--and please don't kill me now--)
> the sendRedirect method and some other methods for manipulating 
> the response
> output. (For the first initial test, I only commented the 
> sendRedirect etc out...)
> For a working version I had to change the Reader and the 
> Environment interface to
> allow setting of the content length. The ResourceReader still 
> contains a link
> to the javax.servlet classes. This must still be removed.
> Another problem is the servlet api 2.3 - it changed the build.xml 
> script. For both
> servlet apis (2.2 and 2.3) the same request and response classes 
> are used as
> the environment.Request/Response methods don't use special 
> servlet methods.
> Thus we could remove (except for the wrapper class) the difference between
> both servlet apis.
> So lets see if we all can live with this solution. Comments are welcome...
> Carsten 
> Open Source Group                        sunShine - b:Integrated
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
>                          mailto: 
> ================================================================
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

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

View raw message