Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/05/2007, 17:19
NeoKaisser
 
Fecha de Ingreso: julio-2003
Mensajes: 240
Antigüedad: 20 años, 10 meses
Puntos: 1
Pasar parametros entre las funciones de un servlet.

Hola a todos.

Quiero hacer algo muy sencillo, pero me da un error de compilación y no sé por qué.

Tengo un servlet que recupera un parametro de un objeto . Vamos al código directamente:

Código:
 
 public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws  ServletException, IOException {
                
        String action = request.getParameter("action");

         CargarDatos(action);
y

Código:
public void CargarDatos(String Action)  throws Exception
Y el error es este:

...\GestiónFicheros.java:396: unreported exception java.lang.Exception; must be caught or declared to be thrown

¿Qué ocurre?

Un saludo y gracias de antemano.