차근차근/JQuery Ajax Jstl

jsp 한줄 띄우기

예쁜꽃이피었으면 2014. 9. 26. 11:11

검색어 : jsp 한줄 띄우기


http://jeongsam.net/242


http://choikyusun.tistory.com/entry/jsp-%EC%A4%84%EB%B0%94%EA%BF%88-%EB%B0%A9%EB%B2%95%EC%9D%80-%EC%9D%B4%EB%9F%B0%EC%8B%9D%EC%9C%BC%EB%A1%9C-%ED%95%98%EC%9E%90





검색어 : 개행문자를 <br>


http://curtis.tistory.com/entry/nl2br-%EC%97%86%EC%9D%B4-%EA%B0%9C%ED%96%89%EB%AC%B8%EC%9E%90n%EB%A5%BC-br%ED%83%9C%EA%B7%B8%EB%A1%9C-%EB%B0%94%EA%BE%B8%EA%B8%B0



http://jeongsam.net/242


http://javaking75.blog.me/220032916703




검색어 : ${fn:replace(cmt,LF,BR)}

http://aircook.tistory.com/entry/Jakarta-String-Tag-Library







<c:out escapeXml = "false" value = "$(fn:replace(stringvalue, LF, '<br>')"></c:out>






<c:forEach items="${code_leaf_type}" var="leaf_type">

<c:forEach var="i" begin="1" end="10">

<c:when test="${i == 5}">

<c:set var="cmt" value="${fn:replace(cmt,LF,BR)}" />

<c:out value="${cmt}" escapeXml="false"/> 

</c:when>

  <div class="code_leaf_type" id="${leaf_type.dtl_cd}">

       <input type="button" value="${leaf_type.dtl_name}" class="btn_option" id="${leaf_type.dtl_cd}"><br>

  <img src="${leaf_type.img_file_path}${leaf_type.img_file_name}" width="60px" height="52px">  

  </div>

 

 </c:forEach>




<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<% pageContext.setAttribute("LF","/n"); %>




<c:forEach var="i" begin="1" end="10">

<c:choose>

<c:when test="${i == 5}">

<c:set var="cmt" value="${fn:replace(cmt,LF, BR)}" />

<c:out value="${cmt}" escapeXml="false"/> 

<br><br><br>

</c:when>

</c:choose>

</c:forEach>



다 안됨.  다른 방법 찾아야 겠음





 <c:forEach var="i" begin="1" end="10">

<c:choose>

<c:when test="${i == 5}">

<br><br><br><br>

</c:when>

</c:choose>

</c:forEach>



됨.  근데 이문제가 아니었음.

반응형