> -----Original Message----- > From: Sylvain Wallez [mailto:[EMAIL PROTECTED] > Sent: maandag 10 november 2003 11:50 > To: [EMAIL PROTECTED] > > Unico Hommes wrote: > > >Unico Hommes wrote: > > > > > >>- cocoon.sendStatus(status) > >>- cocoon.sendStatus(status, message) > >>- cocoon.response.setStatus(status) > >>- cocoon.response.setStatus(status,message) > >> > >> > > > >The vote passed. (I think) I counted 6 positive votes and no negative > ones. I will be making the changes right after the code freeze. > > > > > > Just a remark: what's the difference between cocoon.sendStatus and > response.setStatus?
sendStatus also commits the response. Doing a sendPage after a sendStatus will be an error. This also means that it effectively sends an empty response. setStatus does not commit the response. One must still do a sendPage. > Furthermore, I would like this feature to be defined > at the environment level and not only in the flowscript. Methods of the > "cocoon" object should just be wrappers around features available also > in regular Java code. > These methods already exist on the environment objects: See HttpEnvironment.setStatus(), HttpResponse.setStatus() and HttpResponse.sendError(). Unico > Sylvain > > -- > Sylvain Wallez Anyware Technologies > http://www.apache.org/~sylvain http://www.anyware-tech.com > { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } > Orixo, the opensource XML business alliance - http://www.orixo.com > >
