Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- eGovFramework
- array
- javascript
- CSS
- Ajax
- input
- 정의
- json
- Oracle
- sql
- was
- 오류
- 과정평가형
- jQuery
- 태그
- html
- 배열
- controller
- 개념
- web.xml
- eGov
- mybatis
- POI
- select
- Java
- JVM
- Database
- 함수
- spring
- TO_DATE
Archives
- Today
- Total
목록JSON 데이터 생성하기 (1)
web developer
[java] JSON 데이터를 controller에서 생성하여 jsp로 데이터 가져오기
JSON 데이터 controller(java단)에서 만들어 jsp에 JSON 데이터 보내기 POM.xml에 depencency 추가 com.googlecode.json-simple json-simple 1.1 modelandView로 가져오기 import org.json.simple.JSONObject; import org.json.simple.JSONArray; @RequestMapping(value = "/test.do", method = RequestMethod.GET) @ResponseBody public ModelAndView test() { ModelAndView mv = new ModelAndView(); mv.setViewName("/board/content"); // 뷰의 이름 try {..
Language/Java
2022. 11. 20. 18:15