Friday 29 June 2007

New model of JSP programming using custom tag and eXcelon Database for XML

KI YOUNG HWANG
Department of Computing
University of Surrey, Guildford, Surrey, GU2 5XH, UK

The problem of web programming is that the source code is mixed with HTML and programming script. It makes the difficulty to manage and analyze. In this project, I suggest new model of JSP web programming using custom tag, JRun(Web server), and eXcelon(XML Database). All data are stored as XML data and it is appeared to user by XSLT with XPath. A programming script and HTML source is separated as a component. It improves reuse of each component, even the XSLT (view part) file can be reused with other component of java source. There is another advantage. The JSP source is very simple to analyze for the person who does not have knowledge of program. They can modify the source easily. Therefore, it leads saving the time to manage.

DOWNLOAD Presendation File

DOWNLOAD Paper File

Input only number value (숫자만 입력)

<form name=f>
<input type=text name=t size=20
onKeyDown="return checkKey(event.keyCode);">
</form>
<script language=javascript>
function checkKey(key) {
if ((key >= 48 && key <= 57) // 키보드 상단 숫자키
(key >= 96 && key <= 105) // 키패드 숫자키
key == 8 // 백스페이스 키
key == 37 // 왼쪽 화살표 키
key == 39 // 오른쪽 화살표 키
key == 46 // DEL 키
key == 13 // 엔터 키
key == 9 // Tab 키
) {
return true;
} else {
// alert(key);
return false;
}
}
</script>

=============== 숫자여부 체크 ==============================

function numcheck(check_num) {
var inText = check_num.value;
var ret;

for (var i=0; i<inText.length; i++) {
ret = inText.charCodeAt(i);
if ((ret<48) || (ret>57)) {
alert("숫자로만 기입하여 주시기 바랍니다.");
check_num.value = "";
check_num.focus();
return false
} // if 문
}
}