본문 바로가기

삽질하기

부호 영어 이름 부호(symbol), 영어이름(English name), 별칭(Another name) ~ Tilde ` Open single quoto , Single quotation ! Exclamation point @ At sign # Sharp , Double cross , Number $ Dollar sign , String % Percent ^ Caret Exponentiation & Ampersand , And * Asterisk , Multiplication ( Open parenthesis ) Close parenthesis _ Under score , Under line - Minus sign , Hyphen , Subtraction , Negative + Plus sign , Cross Addit.. 더보기
Javascript this keyword The this keyword One of the most powerful JavaScript keywords is this. Unfortunately it is hard to use if you don't exactly know how it works. Below I explain how to use it in event handling. Later on I'll add some information about other uses of this. Owner The question that we'll discuss for the remainder of the page is: What does this refer to in the function doSomething()? function doSomethi.. 더보기
java.io의 상속도 참고) java.lang.System의 정적 필드 타입 err - java.io.PrintStream in - java.io.InputStream out - java.io.PrintStream 더보기
Tomcat에 Web Context 추가하기 Tomcat 환경변수 설정 CATALINA_HOME C:\Tomcat 5.5 CLASS_PATH .;%CATALINA_HOME%\common\lib\servlet-api.jar Path %CATALINA_HOME%\bin Web Context 추가하기 5.X 버전 예)C:\home 디렉토리를 서비스 %CATALINA_HOME%\conf\Catalina\localhost 폴더에 home.xml을 생성. home.xml *reloadable="true" 자바,서블릿 등을 컴파일 후 Tomcat을 다시 시작하지 않고 변경된 내용 적용 가능. root폴더의 내용을 C:\home에 복사 C:\home\WEB-INF\web.xml org.apache.jsp.index_jsp /index.jsp /index.jsp .. 더보기
synchronized(this)와 synchronized(.class)의 차이점 import java.io.*; public class SynchronizedEx01 extends Thread { static int count; public void run() { for (int i=0; i 더보기
정규표현식 - HTML에서 링크 뽑아내기 태그의 대소문자 구분은 하지 않으므로 대소문자를 모두 지원하기 위해서는String.toLowerCase(str)를 먼저 사용해야 한다. import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegularExpressionEx01 { public static void main(String[] args) { String str = ""; String regEx = "|^\\s]+)(?:\"|\'|\\s)?[^>]*>"; Pattern pattern = Pattern.compile(regEx); Matcher match = pattern.matcher(str); if(match.find()) { System.out.printl.. 더보기