[라이브러리] oracle jdbc
자료실 2013. 10. 31. 09:31 |'자료실' 카테고리의 다른 글
[라이브러리] cos (file upload) (0) | 2013.10.31 |
---|---|
[라이브러리] simple json (0) | 2013.10.31 |
[라이브러리] log4sql (0) | 2013.10.04 |
[라이브러리] log4j (0) | 2013.10.04 |
[라이브러리] mysql jdbc (0) | 2013.10.04 |
[라이브러리] cos (file upload) (0) | 2013.10.31 |
---|---|
[라이브러리] simple json (0) | 2013.10.31 |
[라이브러리] log4sql (0) | 2013.10.04 |
[라이브러리] log4j (0) | 2013.10.04 |
[라이브러리] mysql jdbc (0) | 2013.10.04 |
<html>
<head>
<script type="text/javascript">
var numberCheck = function() {
var temp = document.getElementById('input').value;
if(isNaN(temp) == true) {
alert("입력된 값 : " + temp + " / 문자");
} else {
alert("입력된 값 : " + temp + " / 숫자");
}
};
</script>
</head>
<body>
<input type="text" id="input" />
<input type="button" value="확인" onClick="numberCheck()" />
</body>
</html>
isNaN("문자") ==> true
isNaN(숫자) ==> false
jquery ppt (0) | 2014.07.24 |
---|---|
[JavaScript] 인쇄 window.print() (0) | 2013.10.31 |
ㅇ 웹 프로젝트에 스프링을 적용하기 위해서는 스프링에서 제공하는 DispatcherServlet 설정 필요
ㅇ Root Context 사용시
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:root-context.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
※ Root Context를 사용하는 이유 : 서블릿이 여러개인 경우 각 서블릿 간에 자원을 공유하기 위해서..
※ <param-value>의 classpath: 는 Source Folder, 즉 src 폴더를 가리키며, 별도의 Source Folder를 만들어서 사용 가능
classpath 또는 /WEB-INF 로 작성
ㅇ Dispatcher Servlet 등록
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:dispatcher-servlet.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
- dispatcher : 서블릿의 이름
- contextConfigLocation
ㆍ서블릿 설정 파일의 위치 및 이름
ㆍinit-param 을 사용하지 않아도 상관없음
ㆍinit-param 을 사용하지 않는 경우 [/WEB-INF/서블릿명-servlet.xml] 기본값으로 지정
스프링을 사용한 파일 업로드 2 (Ajax 파일 업로드) (1) | 2014.03.04 |
---|---|
스프링을 사용한 파일 업로드 1 (1) | 2014.03.04 |
component-scan (0) | 2013.09.16 |
Autowired (0) | 2013.09.16 |
기본 데이터 / Bean 객체 주입 방법 (0) | 2013.09.16 |