|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
Matriculas
public class Matriculas
En este servlet implementamos el formulario Matriculas, el cual muestra una página HTML con las distintas Matrículas que tiene cada alumno y los pagos realizados por cada alumno que hay en nuestra base de datos de la Facultad de Estudios Avanzados. Created: 10/05/2006
| Constructor Summary | |
|---|---|
Matriculas()
|
|
| Method Summary | |
|---|---|
void |
cabeceraHTML(java.io.PrintWriter out,
java.lang.String titulo)
Este método escribe la cabecera HTML de la página web. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Este método implementa el método doGet que se encargará de conectarse a la base de datos extraer los datos y mostrar el informe |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Este método implementa el método doPost, simplemente haciendo una rellamada a doGet. |
void |
init(javax.servlet.ServletConfig conf)
Este método implementa el método init por defecto |
void |
pieHTML(java.io.PrintWriter out)
Este método escribe el pie HTML de la página web. |
void |
tablaMatriculas(java.io.PrintWriter out,
java.sql.ResultSet res)
Este método escribe una tabla HTML a partir del conjunto de resultados de una consulta |
void |
tituloHTML(java.io.PrintWriter out,
java.lang.String mensaje)
Este método escribe el titulo de la página HTML aunque también sirve para mostrar un posible error de la BD. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Matriculas()
| Method Detail |
|---|
public void init(javax.servlet.ServletConfig conf)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconf - Variable con la configuración del servlet
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletreq - Variable para la llamada al servletres - Variable para la respuesta al servlet
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletreq - Variable para la llamada al servletres - Variable para la respuesta al servlet
javax.servlet.ServletException
java.io.IOException
public void tablaMatriculas(java.io.PrintWriter out,
java.sql.ResultSet res)
throws java.sql.SQLException
out - salida del servlet donde escribirres - resultados de la consulta
java.sql.SQLException
public void cabeceraHTML(java.io.PrintWriter out,
java.lang.String titulo)
out - salida del servlet donde escribirtitulo - titulo de la página HTML
public void tituloHTML(java.io.PrintWriter out,
java.lang.String mensaje)
out - salida del servlet donde escribirmensaje - titulo o mensaje de error de la página HTMLpublic void pieHTML(java.io.PrintWriter out)
out - salida del servlet donde escribir
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||