ふたりで

jstl session에담은 값 참조하기 본문

Other

jstl session에담은 값 참조하기

graykang 2020. 11. 26. 10:29
728x90
반응형
SMALL

1. 서버에서 session에 값을 넣을때.

request.getSession().setAttribute("keyBAuth", 1000);

2. 화면쪽에서 session에 담긴값을 참조 할때.

<button type="button">A</button>
<c:if test="${sessionScope.keyBAuth == '1000' }">
	<button type="button">B</button>
</c:if>
<button type="button">C</button></div>
728x90
반응형
LIST
Comments