/* * Copyright 2008-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package egovframework.example.sample.web;
import java.io.FileReader; import java.util.HashMap; import java.util.List; import java.util.Map;
import egovframework.example.sample.service.EgovSampleService; import egovframework.example.sample.service.LombokVO; import egovframework.example.sample.service.SampleDefaultVO; import egovframework.example.sample.service.SampleVO;
import egovframework.rte.fdl.property.EgovPropertyService; import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.ui.ModelMap; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.support.SessionStatus; import org.springmodules.validation.commons.DefaultBeanValidator; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException;
@Controller public class EgovSampleController { @RequestMapping(value = "/jsonList.do") public String jsonList(SampleVO sampleVO) throws Exception {
System.out.println("jsonList : " ); return "sample/NewFile"; }
@ResponseBody @RequestMapping("/insert.do") public String insert() { System.out.println("insert"); return "aaaaaaaaaaaaaaaaaaaa"; } }
|