<!-- auth grp cd 목록 -->
<select id="authGrpCd" parameterClass="java.util.Map" resultClass="hashmap">
<![CDATA[
select auth_grp_cd, auth_grp_nm, auth_type from auth_grp
where use_yn = 'Y'
order by app_gubun asc
]]>
</select>
@SuppressWarnings("unchecked")
@Override
public List<HashMap<String,Object>> getAuthGrpCdList(Map<String, Object> condition) throws Exception {
return (List<HashMap<String,Object>>)sqlMap.queryForList("admin.authGrpCd",condition);
}
public List<HashMap<String,Object>> getAuthGrpCdList(Map<String, Object> condition) throws Exception {
return adminDao.getAuthGrpCdList(condition);
}
// auth grp cd 목록 가져오기
List<HashMap<String, Object>> authGrpCdList = adminService.getAuthGrpCdList(condition);
<c:set var="authGrpCd_sel" value="${authGrpCd_sel}" />
<c:forEach items="${authGrpCdList}" var="authGrpCd">
<option value="${authGrpCd.auth_grp_cd}" <c:if test="${auth_grp_cd eq authGrpCd.auth_grp_cd}" >selected="selected"</c:if> >${authGrpCd.auth_grp_nm}</option>
</c:forEach>
'programming > spring_security' 카테고리의 다른 글
생각하나 (0) | 2017.07.12 |
---|---|
[Spring Security] JSP에서 userRealName 가져오기 (0) | 2017.06.09 |
[Spring Security] MySQL 테이블 만들기 insert, Select하기 (0) | 2016.09.29 |
[Spring Security] 페이지 이동에 대해서 (0) | 2016.09.05 |
[Spring Security] DB에서 로그인 정보 가져오기 (5) | 2016.08.18 |