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 보내기!


출력 완료!

'JSP > JSP 예제' 카테고리의 다른 글

[jsp] 파일입출력 (board 게시물에 추가)  (0) 2023.05.31
[jsp] 검색기능  (0) 2023.05.31
[jsp] list 페이징처리  (2) 2023.05.31
[jsp] 댓글 6. 댓글 삭제 ( delete )  (0) 2023.05.31
[jsp] 댓글 5. 댓글 수정 ( modify )  (0) 2023.05.31