Código HTML:
<% try{ %> <sql:statement id="stmt4" conn="conn"> <sql:query> Set DateFormat dmy Insert into Tabla Values('<%=consecutivo%>','CL200','<%=consecutivo%>',getDate(), 'admin','<%=uiDocto%>',NULL,'','CLIMA LABORAL 2007','<%=consecutivo%>','','','','','','','','','','','',') </sql:query> <sql:execute/> </sql:statement> <% }catch(Exception e){ out.print("<script>alert('Error : "+e+"');</script>"); } %>