개발 아카이브 (92) 현재 목록에서 글 찾기 × 썸네일형 리스트형 개발 아카이브/Java·Spring Redirect를 Post 요청으로? 기본적으로 POST 로 요청이 들어온 것에 대해서 model 에 값들을 넣어 redirect: 하면 get방식으로 요청하고 파라메터들이 쭈루룩 붙어서 요청이 되는 것을 확인할 수 있는데 이때 불필요한 파라메터를 제거하는 방법이 바로 아래의 코드를 이용할 수 있다. RedirectView rv = new RedirectView("/view.do");rv.setExposeModelAttributes(false); 허나 이것이 아니라 POST 로 요청을 하고 싶은 경우에 RedirectAttributes , FlashMap 등을 이용하여 전달할 수 있다고 한다. 일단 이정도 적고 나중에 좀 더 길게 해보자. 참고 http://kst.codns.com/crooner/?p=43http://redtrain.tist.. 2013.10.17 개발 아카이브/Java·Spring 스프링(Spring) 에서의 리다이렉트(redirect:) 스프링에서 "redirect:" 를 사용했을때 기준은 현재 서블릿컨텍스트라고 한다. 이때 외부 페이지나 서블릿컨텍스트가 다른 경우에는 절대 URL 경로를 "redirect:" 이후에 지정해야 원하는 페이지로 이동하는 것을 확인할 수 있겠다. public static String getURLWithContextPath(HttpServletRequest request) { return request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();} 참고)http://docs.spring.io/spring/docs/current/spring-framework-refere.. 2013.10.11 개발 아카이브/Java·Spring [Maven] 3rd party jar 를 인스톨하는 방법 공용 레파지토리에 존재하지 않는 경우에 다음의 명령어를 이용하여 로컬 레파지토리에 인스톨할 수 있습니다. mvn install:install-file -Dfile= -DgroupId= -DartifactId= -Dversion= -Dpackaging= 참고 : Guide to installing 3rd party JARs 2013.10.11 개발 아카이브/JavaScript 국내 오픈소스 WYSIWYG HTML 에디터 * DaumEditorDaumEditor is an online open source WYSIWYG HTML editor from Daum Communications.link => https://github.com/daumcorp/DaumEditor/wiki * SmartEditorSmartEditor2.0 Basic 은 JavaScript로 구현된 웹 기반의 WYSIWYG 편집기이다. 글꼴, 글자 크기, 줄 간격 등을 자유롭게 설정할 수 있으며, 단어 찾기/바꾸기와 같은 편리한 기능을 제공한다.link => http://jindo.dev.naver.com/smarteditor/demo/SmartEditor2.html 2013.10.08 개발 아카이브/JavaScript [jQuery] MouseWheel event 마우스에서 휠의 방향에 따른 제어 시 아래의 코드를 이용하자. (Javascript, HTML, Result) 새창으로 보기 2013.09.23 개발 아카이브/JavaScript [jQuery] form data binding 보호되어 있는 글입니다. 2013.08.27 개발 아카이브/JavaScript JS Hint JSHint is a tool that helps to detect errors and potential problems in your JavaScript code. 참고 JS Hint : http://www.jshint.com/install/hint-eclipse : http://github.eclipsesource.com/jshint-eclipse/ 2013.08.23 개발 아카이브/Java·Spring [Thymeleaf] Thymol Static Imports 제목에서 말하듯 Thymeleaf 를 사용시 Thymol 을 통해 html 파일에서의 정적임포트가 가능하다. Thymeleaf 를 이용하여 include 한 파일을 jquery 의 get() 을 통해 해당 위치를 태그를 대체하는 형태로 동작하는데 크롬에서는 다음과 같은 에러를 발생하며 작동하지 않는다. (버전 28.0.1500.95 m) Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin. file:///C:/dev/workspace/proj1/src/main/webapp/WEB-INF/views/common/menu.html 이때 해당 사이트에서 제시한 아래의 방법을 적용하면 정적인 임포트가 가능하다. 그렇.. 2013.08.19 개발 아카이브/JavaScript [Presentation] Deck.js Starter Demo http://ryan-roemer.github.io/deck.js-starter/#title 2013.08.16 개발 아카이브/Java·Spring Thymeleaf Extras Thymeleaf - Tiles 2 integration module https://github.com/thymeleaf/thymeleaf-extras-tiles2 Thymeleaf - Module for Internet Explorer conditional comments https://github.com/thymeleaf/thymeleaf-extras-conditionalcomments 2013.08.14 이전 1 2 3 4 5 6 7 8 ··· 10 다음