cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject HTMLGenerator hardwired to HTTP
Date Wed, 03 Sep 2003 12:42:29 GMT
I have been aware for some time that the HTMLGenerator doesn't work 
within the CLI. Looking at the code, right at the beginning of the setup 
method it says:  

        HttpServletRequest request = (HttpServletRequest) 
objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT);

Now a regular component should not be gaining direct access to the 
HttpServletRequest, it should use the environment's request object. By 
making direct access to the HttpServletRequest, it breaks all 
environments other than HTTP, particularly the CLI.

Does anyone know why this dependency? Anyone able to remove it?

Regards, Upayavira



Mime
View raw message