1. <c:out value="" />
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:out value="${result.id}" escapeXml="true or false" default="출력값" />
value는 필수적으로 입력해야 하는 속성으로 화면에 출력할 값 적는다. escaperXml 속성은 기본적으로 true
2. <c:url value='/updateSampleView.do'/>
document.listForm.action = "<c:url value='/updateSampleView.do'/>";
function fn_egov_select(id) {
document.listForm.selectedId.value = id;
document.listForm.action = "<c:url value='/updateSampleView.do'/>";
document.listForm.submit();
}
3. <c:if test="${registerFlag == 'create'}"<spring:message code="" /></c:if>
4. <c:choose>, <c:when>, <c:otherwise>
<div class="pull-left photoOutline">
<c:choose>
<c:when test="${replylist.photo==null}">
<a href="" class="img-circle">
<i class="glyphicon glyphicon-user noPhoto"></i>
</a>
</c:when>
<c:otherwise>
<img class="img-circle" src="fileDownload?downname=<c:out value="${replylist.photo}"/>" title="<c:out value="${replylist.rewriter}"/>"/>
</c:otherwise>
</c:choose>
</div>
5. <form: select />
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<label for="searchCondition" style="visibility:hidden;"><spring:message code="search.choose" /></label>
<form:select path="searchCondition" cssClass="use">
<form:option value="1" label="Name" />
<form:option value="0" label="ID" />
</form:select>
6. <form: form />
https://bbiyakbbiyak.tistory.com/1
<c:if test="${registerFlag == 'create'}"><spring:message code="button.create" /></c:if>
'Back-end > Spring-핵심& webMVC' 카테고리의 다른 글
Spring - 인터셉터 (0) | 2023.01.01 |
---|---|
SessionStatus, @SessionAttributes, @SessionAttribute (0) | 2023.01.01 |
Spring MVC <component-scan>, <annotation-config>, <annotation-driven> (0) | 2022.12.30 |
Web.xml, DispatcherServlet, ContextLoaderListener 각각의 역할 및 관계 (0) | 2022.12.30 |
DTO(DataTransferObject) vs. VO(Value Object) (0) | 2022.12.11 |