I have a strange situation where writing to the response writer works but performing a requestDispatch.include(rq, rs) does not! What I want to write to the response is the result of a jsp that I am trying to include. Am I missing something basic here? Is include different from writing directly to the response writer?
The response is being evaluated by a java script function and when I write to the response myself it works okay. If I include a JSP (that is the same content) it is as though there was no response at all! Is there a way to examine the response following the .include?
Can you show a full method that makes the .include call and misbehaves? And the JSP that is included as well?
If these are very large please make a mock up that behaves the same way but is a minimal example.
Can you also check your logs and see if an exception occurs during the process? Sometimes these errors get hidden when using JSPs and Servlets because part of the page has been committed before the error occurred. [ August 17, 2008: Message edited by: Steve Luke ]