In my jsp files, when i do a sendRedirect, i have the folowing error "SAXParseException: The root element is required in a well-formed document", because Cocoon 2.01 wait a xml document instead of a redirect (code 302). I try to put some action or matcher in the pipeline to redirect on a new page when a parameter is found in the request. But it doesn't work because the pipeline is executed before the jsp generator : And of course, the request parameter is empty before the jsp was executed. As I have a lot of redirectin my application, i have to do this redirect from the jsp file ! I try also,to do the send redirect in xsl with the xalan redirect but i didn't manage to do this. Could someone help me!
The only cure for that is hours of television radiation. And this tiny ad: