일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- spring
- Oracle
- eGov
- 오류
- Ajax
- array
- web.xml
- mybatis
- input
- javascript
- POI
- TO_DATE
- html
- Java
- 배열
- sql
- CSS
- 정의
- controller
- 태그
- JVM
- json
- 개념
- eGovFramework
- 과정평가형
- was
- jQuery
- select
- Database
- 함수
- Today
- Total
목록string (2)
web developer
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 {..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cfVLxE/btrtt5GzN9Q/L7kZNxo0JexrdkP1msELwk/img.png)
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..