Capture id in Java loop

-1

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

and I want to capture the id in another jsp where the 82 is

    
asked by Said Ravest 19.04.2018 в 22:07
source

1 answer

0

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");
%>
    
answered by 22.04.2018 / 21:21
source