fix error handling in dsep.jsp