I am developing a project in Java, academic work. My doubt is in the following. I can display the items related to a logged in user, where the value (nick) is set in a session named login. See:
<jsp:useBean id="dao" class="dao.CestaDAO" />
<c:forEach var="item" items="${dao.findItens(login)}">
${item.nome}
</c:forEach>
Everything rolls perfectly. However, I'm having trouble when as an administrator, when I click on a link that passes a variable via URL (? ClientLogin = so-and-so). I can not get the value and play as parameter in findItems (). I must be making a silly mistake, Java is not the language I master. Thanks!
String cliente=request.getParameter("clienteLogin").toString();
<jsp:useBean id="dao" class="dao.CestaDAO" />
<c:forEach var="item" items="${dao.findItens(cliente)}">
${item.nome}
</c:forEach>