index.jsp(list.do) 로 이동
컨트롤러(list.do)
<select id="getTotal" parameterType="board" resultType="int">
select count(*) from board
<where>
<if test="keyword != null and search !='subcon'">
${search} like '%'||#{keyword}||'%'
</if>
<if test="keyword != null and search=='subcon'">
subject like '%'||#{keyword}||'%' or
content like '%'||#{keyword}||'%'
</if>
</where>
</select>
search = 컬럼명(검색어), %keyword% = 키워드가 앞,중간,뒤에 있든 검색어
<c:if test="${board.readcount > 30 }">
<img alt="" src="images/hot.gif">
</c:if>