0
I am developing a project in Java, academic work. My question is in the following. I can display items related to a logged in user, where the value(nick) is set in a session with login name. Behold:
<jsp:useBean id="dao" class="dao.CestaDAO" />
<c:forEach var="item" items="${dao.findItens(login)}">
${item.nome}
</c:forEach>
Everything works perfectly. However, I have a problem when as an administrator, by clicking on a link that passes a variable via URL(?clienteLogin=so-and-so). I cannot take the possible value and play as parameter, in findItens(). I must be making a silly mistake, Java is not the language I master. Thank you!
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>