본문 바로가기

WEB_Programming/JSTL

11. JSTL Cookie 처리 1. 쿠키를 이용한 채팅 처리 1.1 index.jsp Chat Login User ID Note: You may use any User ID you wish 1.2 main.jsp User: Message: 더보기
10. JSTL의 Scope 1. 스코프 내용 기본 1.1 스코프 설정 jsp Main File: index.jsp Scoped Variable Current Value Page Scope (scopeVarPage) Request Scope (scopeVarRequest) Session Scope (scopeVarSession) Application Scope (applicationVarPage) [Click Here to View: linked.jsp] 1.2 지정된 스코프 이용 jsp Linked File: linked.jsp Scoped Variable Current Value Page Scope (scopeVarPage) Request Scope (scopeVarRequest) Session Scope (scopeVarSes.. 더보기
9. JSTL에서 JavaBeans 사용 1. JSTL에서 Java Bean 이용 They are equal 2. 하나 이상의 Bean이용 2.1 Bid.java 빈 작성 2.2 Bidder.java 빈 작성 package beans; public class Bidder { /** Holds value of property item. */ private String item; /** Holds value of property price. */ private long price; /** Holds value of property result. */ private String result; /** Creates a new instance of Bidder */ public Bidder() { } /** Getter for property item... 더보기
8. JSTL Set 1. 몸체없이 처리하는 Set Set With No Body str = 2. body 가 를 이용한 Set Set With Body Hello, Again World str = 3. 변수를 위한 Set Value 3.1 변수 표현 jsp 01 Scoped Variable Current Value Page Scope (scopeVarPage) Request Scope (scopeVarRequest) Session Scope (scopeVarSession) Application Scope (applicationVarPage) 3.2 변수 표현 jsp 02 Linked File: linked.jsp Scoped Variable Current Value Page Scope (scopeVarPage) Reques.. 더보기
7. JSTL Collection 예제 1. 수정가능한 Collection 처리 Updatable Collections Enter a item to add or remove. 더보기
6. JSTL foreach 문 처리 1. foreach loop 기본 2. Begin, End 스텝을 이용한 foreach The forEach tag exposes a scoped variable called 'count', which is the position of the current iteration of the collection. (Note, it is not the position of the element in the underlying collection) Family member # is 3. Integer 를 이용하기 위한 foreach loop From 1 to 10 From 10 to 1 4. 스트링 처리를 위한 forEach 태그 Here are my bikes: 5. forEach에서 status Count 처.. 더보기
5. JSTL ForTokens 예제 1. 스플릿트 문자열을 분리, 처리 하기 위한 ForTokens Family member # is 2. ForTokens 기타 Parse for Tokens Enter a sentence: Word 더보기
4. JSTL Choose 예제 1. choose 태그 기본 Tag Plugin Examples - # : One! Four! Three! Huh? 2. if에 대한 Choose 에서 예외상황 처리 Exception! Refresh the page in your web browser to try again. No Exception. Refresh the page in your web browser to make another call. 3. xml 데이터 비교 3.1 데이터 처리 jsp First Last Points Letter Note You did great! You did good! You did ok. Well, you passed. You failed 3.2 xml 데이터 A B T 88 B C D K 9.. 더보기