Jump to content
Fórum Script Brasil
  • 0

Problema com atributo Enumeration


jeankbn

Question

Bom dia pessoal

estou fazendo um aplicativo que adiciona e exclui registros de um banco mais na classe que eu to fazendo de exclusão , a pagia na erro bem quando declaro um Atributo do tipo Enumeration vocês sabem o que pode ta acontecendo?

Abaxo o codigo da pagina:

<%@page import="org.apache.catalina.util.Enumerator"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page errorPage = "agendaPagErro.jsp" %>   
<%@ page import = "java.util.*" %>                 
<%@ page import = "beans.*" %>

<jsp:useBean id = "agendaData" scope = "page" class = "beans.AgendaDataBean" />
<html>
<head>

</head>
<body>
<%
         

        Enumeration enumeration = request.getParameterNames();
           int id_excluir;

   while (enumeration.hasMoreElements()) {
        String nomeAtributo = (String) enumeration.nextElement();
        id_excluir =  Integer.parseInt(request.getParameter(nomeAtributo));
        if (id_excluir > 0)
            agendaData.deletaAgenda(id_excluir);
    }


              
    
%>
     <jsp:forward page = "agendaView.jsp" />

</body>
</html>

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...