+ 5

Why is an exception thrown if any output has occurred in calling JSP, when forward action is encountered ?

Forward action must occur prior to any HTML template data or scriplets or expressions that write data to OutputStream. Why so?

6th Nov 2019, 12:14 PM
Chetali Shah
Chetali Shah - avatar
1 Respuesta
+ 2
It can be caused by a classpath contamination. Check that you /WEB-INF/lib doesn't contain something like jsp-api-*.jar If it does, manually deleting the jar file solved the problem
4th Dec 2019, 9:11 PM
iamvinci
iamvinci - avatar