Knoppia

Wiki de Informática y otras historias

Herramientas de usuario

Herramientas del sitio


dad2:jsp

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Última revisiónAmbos lados, revisión siguiente
dad2:jsp [2024/02/21 12:05] thejuanvisudad2:jsp [2024/02/21 12:18] thejuanvisu
Línea 127: Línea 127:
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  String jsp = "index.jps";  String jsp = "index.jps";
- String paramIdAccion = request.getParameter("ID_ACCION");//recibimos como parametro el ID de accion+ String paramIdAccion = request.getParameter(Control.PARAM_ACTION_ID);//recibimos como parametro el ID de accion
  Accion accion = this.acciones.get(paramIdAccion);//Obtenemos la accion a realizar de la tabla hash  Accion accion = this.acciones.get(paramIdAccion);//Obtenemos la accion a realizar de la tabla hash
  jsp = accion.ejecutar(request, response);//Nos devuelve la JSP a la que hay que ir para realizar la acción  jsp = accion.ejecutar(request, response);//Nos devuelve la JSP a la que hay que ir para realizar la acción
Línea 189: Línea 189:
 === index.jsp === === index.jsp ===
 <code html index.jsp> <code html index.jsp>
 +<%@page import="clases.Control"%>
 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
     pageEncoding="ISO-8859-1"%>     pageEncoding="ISO-8859-1"%>
Línea 198: Línea 199:
 </head> </head>
 <body> <body>
-<a href="control?<%= Control.PARAM_ACTION_ID %>>=INSERTAR_USUARIO">Insertar</a>+<a href="control?<%= Control.PARAM_ACTION_ID %>=INSERTAR_USUARIO">Insertar</a>
 </body> </body>
 </html> </html>
dad2/jsp.txt · Última modificación: 2024/02/21 12:21 por thejuanvisu