Hello
I'm like the following code:
<c:set var="exception" value="${requestScope['java.sql.SQLException']}"/>
<p class="alert alert-danger"><b>Ops!</b> Erro: <br><br>
<!-- Stack trace -->
<jsp:scriptlet>
// exception.printStackTrace();
exception.printStackTrace(new java.io.PrintWriter(out));
</jsp:scriptlet>
</p>
Only the error comes a lot:
java.sql.SQLException: ORA-20999: Aluno já cadastrado anteriormente
ORA-06512: em "DBAADV.TRG_CURSO_INSCRICAO", line 8
ORA-04088: erro durante a execução do gatilho 'DBAADV.TRG_CURSO_INSCRICAO'
ORA-06512: em "DBAADV.PROC_INSCRICAO", line 13
ORA-06512: em line 1 at
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) at
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399) at
oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1059) at
oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522) at
oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257) at
oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587) at
I would just like to get the specific error:
ORA-20999: Aluno já cadastrado anteriormente
or
Aluno já cadastrado anteriormente
My try / catch
try {
...
} catch (SQLException ex) {
throw new ServletException(ex);
}