테스트용 코드관리 모듈 개발 #3 입력화면 : Struts2 + iBATIS is Sample
반응형
<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="ko" xml:lang="ko" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="imagetoolbar" content="no" /> <title>Struts2 + iBatis</title> <script src="/xf/common/js/action.js" type="text/javascript"></script> <link media="all" charset="UTF-8" type="text/css" href="/xf/common/css/default.css" rel="stylesheet" /> </head> <body> <!-- // begin contents --> <div class="board"> <form class="boardInputForm" id="form_input" action="/xf/code/CodeAdmin.xf" onsubmit="return getAction(this,check);"> <input type="hidden" name="mod" value="<s:property value='globals.mod' />" /> <input type="hidden" name="code.code_parent" value="" /> <input type="hidden" name="code.code_child" value="" /> <table class="boardInput" border="0" cellspacing="0"> <tbody> <tr> <th scope="row"><div>코드ID</div></th> <td><input class="inputTypeText w200" value="<s:property value='code.code_id' />" id="code_id" name="code.code_id" type="text" /></td> </tr> <tr> <th scope="row"><div>코드명</div></th> <td><input class="inputTypeText w400" value="<s:property value='code.code_title' />" id="code_title" name="code.code_title" type="text" /></td> </tr> <tr> <th scope="row"><div>코드설명</div></th> <td><textarea class="inputTypeTextArea fullWidth" id="code_comment" name="code.code_comment" rows="" cols=""><s:property value='code.code_comment' /></textarea></td> </tr> <tr> <th scope="row"><div>코드 사용여부</div></th> <td> <select id="code_use" name="code.code_use"> <option value="Y">사용</option> <option value="N">사용안함</option> </select> </td> </tr> </tbody> </table> <div class="boardNavigation"> <div class="buttonArea fCenter"> <span class="button"><input type="submit" value="저장하기" /></span> <a class="button" href="/xf/code/CodeAdmin.xf"><span>목록보기</span></a> </div> </div> </form> </div> <script type="text/javascript"> //<![CDATA[ // 폼 체킹 var check = new Array("code_id","code_title"); check["code_id"] = "&filter=notnull&filter=en_int&min=3&max=3&title=코드ID"; check["code_title"] = "&filter=notnull&title=코드명"; autoPush($("form_input.code_use"),"<s:property value='code.code_use' />"); //]]> </script> <!-- // end contents --> </body> </html>
written by Seok Kyun. Choi. 최석균.
http://www.cyworld.com/syaku
http://syaku.tistory.com
반응형
'개발노트 > Struts2' 카테고리의 다른 글
스트럿츠2 타일즈 동적으로 사용하기 : Tiles in Struts2 (0) | 2010.04.21 |
---|---|
테스트용 코드관리 모듈 개발 #4 목록화면 : Struts2 + iBATIS is Sample (0) | 2009.04.08 |
테스트용 코드관리 모듈 개발 #2 ActionMap : Struts2 + iBATIS is Sample (0) | 2009.04.08 |
테스트용 코드관리 모듈 개발 #1 SqlMap : Struts2 + iBATIS is Sample (0) | 2009.04.08 |