% 랑 cif 차이
jstl = <c:if
<div class="row">
<div class="col-lg-2 h">검색</div>
<div class="col-lg-10 d">
<div class="form-inline">
<select id="search_list_st" name="sch_type" class="form-control form-control-sm mr-1">
<option value="" <c:if test="${requestScope.param.sch_type == ''}">selected="selected"</c:if> >전체</option>
<option value="sj" <c:if test="${requestScope.param.sch_type == 'sj'}">selected="selected"</c:if> >제목</option>
<option value="cn" <c:if test="${requestScope.param.sch_type == 'cn'}">selected="selected"</c:if> >내용</option>
</select>
<input class="form-control form-control-sm mr-1" style="ime-mode:active;" type="text" name="sch_text" placeholder="검색어를 입력하세요." value="${requestScope.param.sch_text}">
<button class="btn btn-sm btn-default btn-outline-dark form-control-sm" type="button" onclick="fnSearch(); return false;"><i class="fa fa-search"></i></button>
</div>
</div>
</div>
jsp = <%
자바를 사용할때
<tr>
<td class="text-left" bgcolor="#F2F5F8" style="font-weight: bold;" >전송가부</td>
<td>
<div class="text-left form-inline">
<div class="form-group">
<select id="sch_trnsmis_yn" name="sch_trnsmis_yn" class="form-control input-sm">
<option value="banner_nm" <%if(param.getString("sch_type").equals("banner_nm")){%>selected="selected"<%}%>>전체</option>
<option value="attrb_1" <%if(param.getString("sch_type").equals("attrb_1")){%>selected="selected"<%}%>>예</option>
<option value="attrb_2" <%if(param.getString("sch_type").equals("attrb_2")){%>selected="selected"<%}%>>아니오</option>
</select>
</div>
</div>
</td>
</tr>
'development♥' 카테고리의 다른 글
svn충돌 해결방법 override and update, override and commit 차이 (0) | 2022.11.16 |
---|---|
DBeaver date타입 날짜 형식Date Format 변경하기 (0) | 2022.11.15 |
jquery 이벤트 버블링 처리 (0) | 2022.11.07 |
오라클 date타입 시분초 (0) | 2022.11.06 |
이클립스 jdk 버전변경 및 특정프로젝트 jdk만 바꾸는법 (0) | 2022.11.05 |