<%@ page isErrorPage="true" %>
<html>
Um erro ocorreu.<br/>
${pageContext.errorData.throwable}
</html>
<error-page>
<exception-type>
java.sql.SQLException</exception-type>
<location>/erro.jsp</location>
</error-page>
protected void service(HttpServletRequest req, HttpServletResponse response)
throws ServletException,
IOException {
....
try {
for(String linha: expArq.getImport(filtro)){
out.write(linha.getBytes());
}
} catch (SQLException e) {
//throw new SQLException(mensagen);
e.printStackTrace();
}
}
o que tenho que fazer?