ins0320 / servlet1128

0 stars 0 forks source link

Jsp 수업 정리 #2

Open ins0320 opened 10 months ago

ins0320 commented 10 months ago

23.12.01 < jsp 동작 방식 >

ins0320 commented 10 months ago

23.12.04 [web front] name태그

강아지 or 고양이
        <label for="dog">강아지</label>
        <input type="radio" id="dog" name="animal" value="dog">
        <label for="dog">고양이</label>
        <input type="radio" id="cat" name="animal" value="cat">
취미는 무엇입니까?
        <input type="text" name="hobby"><br><br>

id태그

ins0320 commented 9 months ago

23.12.06

예제 Copyright © marondal 2021

SmartSelect_20231206_114208_Samsung Notes

for (Map<String,Object> item: list){
                    if( search.equals(item.get("menu"))){   

                        if(checkPoint!= null && checkPoint.equals("true") && (double)item.get("point") <= 4.0){
                                continue; //아래 코드 수행하지 않고 skip
                            }

                    %>
                    <tr>
                        <td> <%= item.get("menu") %></td>
                        <td> <%=  item.get("name")%></td>
                        <td> <%= item.get("point") %></td>
                    </tr>   
                <%   
                    }
                } %>
ins0320 commented 9 months ago

JSP에서 Template 구성하기 (1) 정적(static) 방식 - JSP Include Directive: 코드 분할하여 완전히 합친다. -> 기본 html태그 제거하기(메인 페이지에 이미 태그들 선언 되니까) (2) 동적 방식 - Action Tag