[quote] *****FIRST ACTIVITY***** <a href="DeletePersonServlet"><strong>Delete</strong></a>
*****SECOND ACTIVITY***** String id = (String) request.getParameter("id"); [/quote] At FIRST ACTIVITY, you add a link to delete a person and at SECOND ACTIVITY, you read request parameter as id for a person. It should be <a href="DeletePersonServlet.html?id=$ {person.id}"><strong>Delete</strong></a> (i assume your servlet mapping use .html extension) Does id for class Person in String?? if so, String id = request.getParameter("id"); would be fine (no need to cast) if it is integer than your code should be like this int id = Integer.parseInt(request.getParameter("id")); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---