This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| File Upload | |
| on Spring project | |
| */ | |
| /* | |
| <form> in jsp need enctype attribute. For example: | |
| <form name="formA" id="formA" method="post" enctype="multipart/form-data" action="[your_address]"> | |
| ... | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <c:forEach items="${list}" var="item" varStatus="stat"> | |
| <!-- varStatus has index attribute that counts automatically --> | |
| <c:if test="${stat.index == 0}">the first item</c:if> | |
| <a href="${item.link}" <c:if test="${(item.prop1 == 'A') || (empty item.prop1)}"> attr1="val1" </c:if>> | |
| <!-- src can use the value --> | |
| <img src="/file/${item.prop2}" alt="${item.prop3}" /> | |
| </a> | |
| </c:forEach> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * If you click 'All' checkbox, other checkboxs are cancelled. | |
| */ | |
| /* HTML Sample Code: Checkboxs which contains 'All' checkbox. */ | |
| // <input type="checkbox" name="hdBox" id="hdBoxAll" value="30000" onclick="checkHdBoxes(this);" checked /><label for="hdBoxAll">전체</label> | |
| // <input type="checkbox" name="hdBox" id="hdBox1" value="30110" onclick="checkHdBoxes(this);" /><label for="hdBox1">지역1</label> | |
| // <input type="checkbox" name="hdBox" id="hdBox2" value="30140" onclick="checkHdBoxes(this);" /><label for="hdBox2">지역2</label> | |
| // <input type="checkbox" name="hdBox" id="hdBox3" value="30170" onclick="checkHdBoxes(this);" /><label for="hdBox3">지역3</label> | |
| // <input type="checkbox" name="hdBox" id="hdBox4" value="30200" onclick="checkHdBoxes(this);" /><label for="hdBox4">지역4</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var UserAgent = navigator.userAgent; | |
| if (UserAgent.match(/iPhone|iPod|Android|Windows CE|BlackBerry|Symbian|Windows Phone|webOS|Opera Mini|Opera Mobi|POLARIS|IEMobile|lgtelecom|nokia|SonyEricsson/i) != null || UserAgent.match(/LG|SAMSUNG|Samsung/) != null) { | |
| location.href = "/mobile/index.html"; | |
| } |
NewerOlder