The way I did it may be different than others but basically I did the following: (1) My Person.jsp displays a table of the person table elements : id, first name and last name, and the last column is a hyperlink to my DeleteServlet which passes in the ID of the person for that row. (2) My DeleteServlet gets the ID passed in and then I use Entity manager to get the person using a "find" for the Person.class and ID passed in. Then I use entity manager to do a "remove". Then I want to pass the new list out since I updated it... so I create a List of persons that is the results of a SQL to select everything from PERSON and then do a request.setAttribute to the the new List results (to ensure the list is refreshed to the new values now).. Then once that executes, I do my request.getRequestDispatcher to the ListPerson.jsp
On May 21, 3:27 pm, pxk5...@njit.edu wrote: > Did anyone get this to work? Some of us are struggling with this one. > If you got it to work, can you give us a hint? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---