I need to get the value of an attribute of an object (user.state) and put it inside a JSP variable (state) to then make if statements depending on that variable. Here the code.
<tbody>
<tr>
<td><c:out value="${usuario.id}"/></td>
<td><c:out value="${usuario.apellidos}"/></td>
<td><c:out value="${usuario.nombre}"/></td>
<td><c:out value="${usuario.usuario}"/></td>
<td><c:out value="${usuario.clave}"/></td>
<td><c:out value="${usuario.permisos}"/></td>
<td><c:out value="${usuario.estado}"/></td>
<% String estado=(AQUI ES DONDE NECESITO OBTENER EL VALOR DE usuario.estado);%>
<td><form action=""><button type="button" class="btn
btn-block btn-info btn-xs" name="${usuario.usuario }" value="${usuario.usuario }">Editar</button></form></td>
<td><form action="DeshabilitaServlet" method="post">
Off Delete
I already found a solution and it is using JSTL itself
With the and apart from being able to use them as an if , they can use the variables that the servlet sends, in this case capture user.state and depending on whether it is 1 or 0 execute an action