728x90
반응형
@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ page import="kr.co.javaspecialist.board.model.service.impl.BoardCategoryService"%>
<%@ page import="java.util.List"%>
<%@ page import="kr.co.javaspecialist.board.model.vo.BoardCategory"%>
<%@ page import="kr.co.javaspecialist.board.model.service.IBoardCategoryService"%>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@ page import="org.springframework.web.context.WebApplicationContext"%>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(application);
IBoardCategoryService categoryService = wac.getBean(BoardCategoryService.class);
List<BoardCategory> categoryList = categoryService.selectAllCategory();
request.setAttribute("categoryList", categoryList);
%>
|
cs |
@
출처
https://javaspecialist.co.kr/board/599;jsessionid=382F4F8DA390659BE5B31E066EE4091F
728x90
반응형