-
validation카테고리 없음 2020. 7. 7. 00:48
형식 지정을 위한 validation 만들기 및 적용 /** * */ // 정규식 패턴 : http://ryanswanson.com/regexp/#start // 반복 : * 반복하지 않거나 1번 이상 반복 // + 1번 이상 반복 // {} 최소, 최대 반복횟수 또는 반복횟수 정의 // {3} {1,3} {,3} {2,} // if(/^[a-z][0-9]{3}$/.test('a001')){} String.prototype.validationID = function() { // // "a001".validationID(); return /^[a-z][0-9]{3}$/.test(this); }; String.prototype.validationPWD = function() { // "asdfasdf".va..
-
-
table 선택시 td를 구분하여 선택, 형제 선택카테고리 없음 2020. 7. 7. 00:37
$(function(){ $('tbody > tr > td:nth-child(1)').click(function(){ var post_no = $(this).find('input').val(); location.href = '${viewURI}?post_no=' + post_no; }); $('tbody > tr > td:nth-child(2)').click(function(){ var file_no = $(this).find('input').val(); location.href = '${download}?file_no=' + file_no; }); }); td 를 구분하여 형제 선택 $('.memberList tr td:gt(0)').on('click', function() { var id = $(th..
-
Strtus2 프레임웤WEB 2020. 7. 6. 21:36
라이브러리 설치 https://struts.apache.org/ → https://archive.apache.org/dist/struts/binaries/ 2.0.14 버전을 설치할 것임 → struts-2.0.14-all.zip → lib → 4개의 필수 라이브러리 freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.0.14.jar xwork-2.0.7.jar commons-logging-1.1.1.jar web.xml StrutsToddler index.html index.htm index.jsp default.html default.htm default.jsp struts2 org.apache.struts2.dispatcher.FilterDispatcher ..
-
-
type CLOB => type String 전환WEB 2020. 7. 1. 15:48
오라클에서 CLOB 데이터를 가져올 경우에 주소를 가져오는 경우가 있다. VO를 통해서 값을 가져오는 경우에는 주소로 가져오는 현상이 일어나지 않지만, java.util.HashMap 으로 CLOB 데이터를 가져올 경우 log4j 를 살펴보면 값이 주소로 표현이 된다. 이 데이터를 String 타입으로 전환 하기 위해서는 변환을 해줘야 한다. package kr.or.ddit.utiles; import java.io.BufferedReader; import java.sql.Clob; public class CLOBToStringConvert { public static String convert(Object targetData) throws Exception{ StringBuffer buffer = ne..
-
IntellijIDE(통합개발환경)/Intellij 2020. 4. 29. 20:28
단축키 ( shortcut ) - undo redo ctrl + z ctrl + shift + z - 한줄 아래 ctrl + enter - Tag로 묶기 ctrl + alt + T - 한 태그 선택하기 ctrl + w - 한줄 공간 아래로 만들기(한줄 공간을 만들면서 커서 이동) shift + enter - 한줄 공간 위로 만들기(한줄 공간을 만들면서 커서 이동) ctrl + alt + enter - 한줄 위치 이동 shift + alt + 방향키 - 한줄 복사 ctrl + d - 한줄 제거 ctrl + y