전체 글376 [Eclipse] Tomcat의 Context path (root) 설정 이클립스에서 서버 구동 시 자동 설정되는 경로 수정 방법 [방법1] Eclipse ➡ Servers ➡ Tomcat ➡ server.xml ➡ path 수정 [방법2] Eclipse ➡ Project 우클릭 ➡ Properties ➡ Web Project Settings ➡ Context root 수정 (서버 재실행 ➡ server.xml에 자동 설정됨) [마무리] 이후 Server ➡ Run on Server ➡ 서버 재실행 2021. 11. 8. [JS/jQuery] action, submit HTML Submit JavaScript function fnSubmit() { var form = document.formName; form.submit(); } jQuery function fnSubmit() { $('#formId').attr('action', 'action.do').submit(); } 2021. 11. 3. [JSTL] select option 값 유지 값 이동 순서 View ➡ Controller ➡ View HTML All Spring Summer Fall Winter [방법1] 삼항 연산자 All Spring Summer Fall Winter [방법2] 삼항 연산자 + JSTL 컨트롤러에서 넘어온 객체가 리스트인 경우 All ${list.listName} [방법3] JSTL All ${list.listName} - 출처: https://mi-nya.tistory.com/282 2021. 11. 3. [jQuery] select 이벤트 부여 select 이벤트 부여 방법 $('#selectId').on('click', function() {}); $('#selectId').click(function() {}); $('#selectId').bind('click', function() {}); 동적으로 생성된 select 이벤트 부여 방법 $(document).on('change', '#selectId', function() {}); 출처: https://pamaha.tistory.com/33 2021. 11. 2. 이전 1 ··· 29 30 31 32 다음