How to show an error.jsp with Jboss and struts?
Hello!We use JBoss 5 and struts 1.2.4.
First I got to fix a bug that we got an error in a log file:
Cannot forward after response has been committed.
If I'm not wrong this occured because we got <error-page> pointing to syserror.jsp in web.xml and in struts-config.xml we got <exception> handling to the same page.
How ever when I removed the error-page from web.xml the error in the log file was gone.
...But...
First time I trigger the excption that should lead me to the syserror.jsp I get:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
expetion.MyExceptionDTO
Next time I trigger it everything runs through the struts and the syserror.jsp is showing correct.
Is thie because I have not precompile the jsp?
If you got any clue please let me know!
Best regards
Fredrik