티스토리 뷰
728x90
반응형
인클루트 액션 태그
<jsp:include page="" flush="true">
<jsp:param name="" value="" />
<jsp:param name="" value="" />
</jsp:include>
포워드 액션 태그
<jsp:forward page="">
<jsp:param name="" value="" />
</jsp:forward>
포워드 (스크립트릿(scriptler), 방식)
<%
RequestDispatcher requestDispatcher = request.getRequestDispatcher("xxx.jsp");
requestDispatcher.forward(request, response);
%>
유즈빈 액션 태그
<jsp:useBean id="memberBean" class="jspMemberSearch.ex1.MemberBean" scope="page" />
<%
request.setCharacterEncoding("utf-8");
memberBean.setName("name34");
memberBean.setId("id3434");
MemberDAO memberDAO = new MemberDAO();
memberDAO.addMember(memberBean);
%>
// scope
// scope = page OR request OR session OR application
셋프로퍼티 액션 태그
<jsp:useBean id="memberBean" class="jspMemberSearch.ex1.MemberBean" scope="page" />
<jsp:setProperty name="memberBean" property="name" value='<%= request.getParameter("name") %>' />
<jsp:setProperty name="memberBean" property="id" value='<%= request.getParameter("id") %>' />
<%
request.setCharacterEncoding("utf-8");
MemberDAO memberDAO = new MemberDAO();
memberDAO.addMember(memberBean);
List<MemberVO> memberList = memberDAO.memberList("");
%>
<form name="formName" action="memberAdd.jsp" method="post">
<input type="text" name="name">
<input type="text" name="id">
<br>
<input type="submit" value="Data Send">
</form>
<jsp:useBean id="memberBean" class="jspMemberSearch.ex1.MemberBean" scope="page" />
<jsp:setProperty name="memberBean" property="name" />
<jsp:setProperty name="memberBean" property="id" />
// Html Tag: name 과 property: name 동일할 경우 자동으로 값이 바인딩된다.
<form name="formName" action="memberAdd.jsp" method="post">
<input type="text" name="name">
<input type="text" name="id">
<br>
<input type="submit" value="Data Send">
</form>
<jsp:useBean id="memberBean" class="jspMemberSearch.ex1.MemberBean" scope="page" />
<jsp:setProperty name="memberBean" property="*" />
// Html Tag: name 과 property: name 동일할 경우 자동으로 값이 바인딩된다.
겟프로포터 액션 태그
<form name="formName" action="memberAdd.jsp" method="post">
<input type="text" name="name">
<input type="text" name="id">
<br>
<input type="submit" value="Data Send">
</form>
<jsp:useBean id="memberBean" class="jspMemberSearch.ex1.MemberBean" scope="page" />
<jsp:setProperty name="memberBean" property="*" />
<p>input value = <jsp:getProperty name="memberBean" property="name" /></p>
<p>input value = <jsp:getProperty name="memberBean" property="id" /></p>
728x90
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 제품 등록
- 스프링 시큐리티(spring security)-http basic 인증
- 표현 언어(expression language)
- 람다식(lambda expression)
- 스프링 시큐리티(spring security)
- jsp 오픈 소스
- jstl(java standard tag library)-core
- 메이븐(maven)
- React
- await
- .submit()
- 진수 변환
- 문자 자르기
- In App Purchase
- java web-mvc
- MainActor
- system.io
- 스프링 프레임워크(spring framework)
- nl2br
- REST API
- 인텔리제이(intellij)
- java-개발 환경 설정하기
- java.sql
- 특정 문자를 기준으로 자르기
- 스프링 프레임워크(spring framewordk)
- error-java
- 상품 등록
- System.Diagnostics
- jstl(java standard tag library)
- java 키워드 정리
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함