I know this is a php forum but i really need help, how can i trap my 500 error in jsp i have tried putting on httpd.conf of apache the ErrorDocument 500 /error.jsp and also i have put an error checking on my jsp page but it won't still work. I need an error page that catch all error even the syntax error. please help me with this one.