We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pet 데이터를 가져와서 gnb에 뿌리려면 어떻게 해야하지?
The text was updated successfully, but these errors were encountered:
#14
54b4641
#14 해결 못한 코드
dd15516
77a34bf
petId와 petName을 배열이나 리스트가 아닌 string으로 담아서 session에 저장한 후 jsp에서 split함수를 이용해 뿌렸다.
petId = "1,2,3"; petName = "고양이, 빵이";
<c:set var="petIdArr" value="${fn:split(petIdArr, ',')}" /> <c:set var="petNameArr" value="${fn:split(petNameArr, ',')}" /> <c:forEach items="${petIdArr}" var="petId" varStatus="status"> <c:set var="petName" value="${petNameArr[status.index]}" /> <li class="mypet-nav"> <a class="pet-nav d-block" href="/mypet/${petId}"> > ${petName} </a> </li> </c:forEach>
Sorry, something went wrong.
Anna-Jin
No branches or pull requests
pet 데이터를 가져와서 gnb에 뿌리려면 어떻게 해야하지?
The text was updated successfully, but these errors were encountered: