I am creating a social network, in jsp and I have a question about how to capture the id of a publication that is showing in a forEach
what is shown in this loop
with the integer.parse int capture the id
<%PublicacionMysqlDao pdao = new PublicacionMysqlDao();
pdao.darLikes(2, user.getId(),Integer.parseInt(request.getParameter("id")));
response.sendRedirect("muro.jsp");
%>