Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/10/2010, 05:20
Avatar de LordJhony
LordJhony
 
Fecha de Ingreso: septiembre-2010
Mensajes: 472
Antigüedad: 13 años, 7 meses
Puntos: 24
Herencia De Una Clase En Pagina Jsp

Hola A Todos....
Tengo Un Pequeño Problema. Miren Tengo Lo Siguiente En Mi Pagina Jsp.
Código HTML:
Ver original
  1. <%@ page language="java" %>
  2. <%@ page import = "java.sql.*"%>
  3. <head>...
  4. <body>...
  5. <form method="post" action="Componente">...
  6. <select name="programa">
  7.                   <%
  8.                  Conexion bd=new Conexion();
  9.                  bd.init();
  10.                  if (!bd.admin.isClosed())
  11.                   {
  12.                       bd.ingreso = bd.admin.createStatement();
  13.                       bd.valida = bd.ingreso.executeQuery("select Nombre from simulador_ecaes.programa" );
  14.                       out.println("<option></option>");
  15.                        System.out.println(bd.valida);
  16.                        while (bd.valida.next())
  17.                        {
  18.                           System.out.println("Dentro del while") ;
  19.                           String nombre=bd.valida.getString("Nombre");
  20.                           System.out.println(nombre);
  21.                           out.println("<option value='"+nombre+"'>"+nombre+"</option>");
  22.                        }
  23.                        bd.admin.close();
  24.                    }
  25.                    else
  26.                      out.println("fallo");
  27.                   %>
  28.               </select>
  29. </body>
  30. </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.
Cita:
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
O Tambien Me Dice Que La Clase Conexion No Existe.
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