20.01.2013 Views

View - Tesis Electrónicas Universidad de Chile

View - Tesis Electrónicas Universidad de Chile

View - Tesis Electrónicas Universidad de Chile

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System.out.println("paso 7");<br />

}<br />

System.out.println("paso 12");<br />

cod=null;<br />

url = "error.jsp";<br />

this.DesplegarResultado(url,cod,nombre,request,response);<br />

System.out.println("paso 13");<br />

}<br />

java.io.IOException {<br />

url);<br />

}<br />

// Se <strong>de</strong>finen los Metodos<br />

private void DesplegarResultado(<br />

String url,<br />

String cod,<br />

String nombre,<br />

HttpServletRequest request,<br />

HttpServletResponse response)<br />

throws javax.servlet.ServletException,<br />

RequestDispatcher disp = null;<br />

request.setAttribute("cod", cod);<br />

request.setAttribute("nombre", nombre);<br />

disp = getServletContext().getRequestDispatcher("/" +<br />

disp.forward(request, response);<br />

private Connection Conectar() {<br />

System.out.println("Abriendo Conexión");<br />

Connection conexion = null;<br />

String DBurl = "jdbc:odbc:base7";<br />

try {<br />

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");<br />

182

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!