본문 바로가기

전체 글

ajax form submit - JSP- Category -나의소중한일상 - Java Script//post regist save ajax$("#postSave").click(function() {CKupdate();var formData = $("#postSaveForm").serialize();console.log(formData);$.ajax({type : "POST",url : getContextPath()+"/post/postSave.do",cache : false,data : formData,dataType : "json",success : function(res) {if (res.result == "200") {alert("등록이 정상적으로 되었습니다.");$(location).attr('href',getContextP.. 더보기
CKEditor 사용 및 파일 업로드 적용 1. CKEditor 다운 - DOWNLOAD URLhttp://ckeditor.com/ 에서 다운로드 - 설치 위치webapp 밑에 copy - JSP 설정 filebrowserUploadUrl 을 설정을 해주어야만 사진 업로드 시 업로드 탭이 생겨 사진파일을 업로드 할 수 있다.그렇지 않으면 CKFinder를 사용하여 적용 시켜주어야 한다. - 사진 업로드 구현 ServletController@RequestMapping(value="/file/ckeditorImageUpload.do", method=RequestMethod.POST)public void ckeditorImageUpload(HttpServletRequest request, HttpServletResponse response, @Requ.. 더보기
spring property 사용 context-common.xml (전자정부프레임워크 빈등록 파일이다) - 프로퍼티 등록 -file.propertiesfile.url=D:/hybr1d/workspace/src/main/webapp/upload/ckImages -Servlet 에서 사용@Value("#{fileProp['file.url']}")private String FILE_URL; FILE_URL 변수에 값이 선언된다. 더보기
프로젝트 설정 - web.xml web.xml 설정 encodingFilterorg.springframework.web.filter.CharacterEncodingFilterencodingutf-8encodingFilter*.doHTMLTagFilteregovframework.rte.ptl.mvc.filter.HTMLTagFilterHTMLTagFilter*.do contextConfigLocationclasspath*:egovframework/spring/context-*.xml, classpath*:egovframework/batch/job/*.xml contextConfigLocationclasspath*:egovframework/spring/context-*.xml, classpath*:egovframework/batch/job.. 더보기
WebSquere 설정 및 기본 스크립트 1. DATA COLLECTION 생성 - MAP - LIST 2. 서브미션 생성 후 서브미션 실행var submission = $w.getSubmission("retrieveMmnyInsrnccntrctStatsList");submission.action = "/" + CommonUtil.getContextName() + "/dmi/si/ext/retrieveMmnyInsrnccntrctStatsList.do";$w.executeSubmission("retrieveMmnyInsrnccntrctStatsList"); 3. 서브미션 콜백scwin.retrieveMmnyInsrnccntrctStatsList_submitdone = function(e) {fn_error_msg_proc(); // 오류 메시지.. 더보기
geoserver SLD를 이용한 차트 올리기 image/png20 *기존 geoserver 예제는 chart plugin을 이용한 차트이지만 이건 구글 이미지 차트를 이용한 것으로 차이는 없다 그대신 기존 sample의 application/chart에서 format을 image/png로 지정해주어야 한다. 더보기
OpenLayers function //WMS 레이어 업데이트 //geoserver에서 sql view 로 생성한 레이어는 parameter로 조건을 줄 수 있다.//parameter : viewparamsOpenLayers.Layer.WMS.prototype.updateLayers = function(layers,data) {console.log("updateLayers : " +layers,data);this.mergeNewParams({'LAYERS' : layers});this.mergeNewParams({viewparams : data});if(layers.length > 0) {this.setVisibility(true);} else {this.setVisibility(false);}}; //레이어 생성 시 속성값 부여 하는 스.. 더보기
POST GIS VIEW 1. POSTGIS extensions - CREATE EXTENSION postgis;2. shp 파일 import 3. postGIS 좌표계 추가- 서부원점(GRS80)-EPSG:5185 INSERT INTO spatial_ref_sys(srid, auth_name, auth_srid, srtext, proj4text) VALUES (5185, 'EPSG', 5185, 'PROJCS["ITRF_2000_TM_Korea_West_Belt", GEOGCS["GCS_ITRF_2000", DATUM["D_ITRF_2000", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.017453292519943.. 더보기