Tengo Un Pequeño Problema. Miren Tengo Lo Siguiente En Mi Pagina Jsp.
Código HTML:
Bueno Mi Problema Esta En El Select Para Ser Mas Especifico En La Herencia De La Clase Conexion. Cuando Ejecuto Me Sale El Siguiente Error.Ver original
<%@ page language="java" %> <%@ page import = "java.sql.*"%> <html> <head>... <body>... <form method="post" action="Componente">... <select name="programa"> <% Conexion bd=new Conexion(); bd.init(); if (!bd.admin.isClosed()) { bd.ingreso = bd.admin.createStatement(); bd.valida = bd.ingreso.executeQuery("select Nombre from simulador_ecaes.programa" ); out.println("<option></option>"); System.out.println(bd.valida); while (bd.valida.next()) { System.out.println("Dentro del while") ; String nombre=bd.valida.getString("Nombre"); System.out.println(nombre); } bd.admin.close(); } else out.println("fallo"); %> </select> </body> </html>
Cita:
O Tambien Me Dice Que La Clase Conexion No Existe.HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 75 in the jsp file: /Registro_Componente.jsp
PWC6199: Generated servlet error:
string:///Registro_005fComponente_jsp.java:118: cannot find symbol
symbol : class Conexion
location: class org.apache.jsp.Registro_005fComponente_jsp
PWC6197: An error occurred at line: 75 in the jsp file: /Registro_Componente.jsp
PWC6199: Generated servlet error:
string:///Registro_005fComponente_jsp.java:118: cannot find symbol
symbol : class Conexion
location: class org.apache.jsp.Registro_005fComponente_jsp
note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.
--------------------------------------------------------------------------------
GlassFish/v3
--------------------------------------------------------------------------------
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 75 in the jsp file: /Registro_Componente.jsp
PWC6199: Generated servlet error:
string:///Registro_005fComponente_jsp.java:118: cannot find symbol
symbol : class Conexion
location: class org.apache.jsp.Registro_005fComponente_jsp
PWC6197: An error occurred at line: 75 in the jsp file: /Registro_Componente.jsp
PWC6199: Generated servlet error:
string:///Registro_005fComponente_jsp.java:118: cannot find symbol
symbol : class Conexion
location: class org.apache.jsp.Registro_005fComponente_jsp
note The full stack traces of the exception and its root causes are available in the GlassFish/v3 logs.
--------------------------------------------------------------------------------
GlassFish/v3
Alguien Me Puede Decir ¿Que Error Estoy Cometiendo?, ¿Como Puedo Solucionarlo?, O Si Hay Que Importar La Clase Conexion Como Tendria Que Hacerlo?.
De Antemano Muchas Gracias A Todos