JSP/JSP
[jsp] 결과갯수 배지 생성 / 내 게시물 출력 (사용자가 작성한 게시물)
congs
2023. 5. 31. 12:19
== 결과갯수 배지 생성 ==

<!-- 검색 결과 출력수 나타내는 버튼 (부트스트랩) -->
<button type="button" class="btn btn-primary position-relative">
결과
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
${pgh.totalCount } <span class="visually-hidden">unread messages</span>
</span>
</button>
https://getbootstrap.kr/docs/5.2/components/badge/
배지
배지에 대한 개요와 사용법 예시입니다.
getbootstrap.kr
== 내가 쓴 게시물 출력 ==

index.jsp에서 '내 게시물 보기' 버튼 생성!
<a href="/brd/page?keyword=${ses.id}&type=w">
<button type="submit">내 게시글보기</button>
</a>
: 생성하면서 파라미터로 keyword=${ses.id}&type=w 보내기!
