일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 태그
- 정의
- Java
- select
- javascript
- Oracle
- eGov
- Ajax
- json
- spring
- was
- input
- array
- TO_DATE
- eGovFramework
- 과정평가형
- sql
- web.xml
- 암호화
- 개념
- 함수
- JVM
- 오류
- html
- controller
- jsp
- mybatis
- POI
- CSS
- jQuery
- Today
- Total
목록string (2)
web developer
JSON 데이터 controller(java단)에서 만들어 jsp에 JSON 데이터 보내기POM.xml에 depencency 추가 com.googlecode.json-simple json-simple 1.1modelandView로 가져오기 import org.json.simple.JSONObject;import org.json.simple.JSONArray;@RequestMapping(value = "/test.do", method = RequestMethod.GET)@ResponseBodypublic ModelAndView test() { ModelAndView mv = new ModelAndView(); mv.setViewName("/board/con..

ajax data 값을 controller로 넘기는 과정 1-1. Ajax 사용한 예시 (javascript단에서 데이터를 가져와서 controller로 넘기기 위해) $.ajax({ url : "test.action", type : "post", data : { name : "뜨루", age : "28", gender : "여자" }, success : function(data) { }, error : function() { alert("error"); } }); 2-1. Ajax에서 Controller로 값(parameter) 넘길 때 : String으로 받는 경우 @RequestMapping(value = "/test.action", method = { RequestMethod.POST }) pub..