[jstl] According to TLD or attribute directive in tag file, attribute value does not accept any expressions 에러
![]() ![]()
|
<fmt:formatNumber value="12.34567" type="number"/> 는 잘 되는데
이상하게
<fmt:formatNumber value="${100*j.ORGAN_CNT/k.ORGAN_CNT}" type="number"/> 를 해주면 오류가 난다.
여기저기 찾아보니
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> 를
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %> 로 바꿔주면 된다.
이상하게
<fmt:formatNumber value="${100*j.ORGAN_CNT/k.ORGAN_CNT}" type="number"/> 를 해주면 오류가 난다.
여기저기 찾아보니
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> 를
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %> 로 바꿔주면 된다.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
It is the old version of JSTL and even if I copied the newest standard.jar and jstl.jar into WEB-INF/lib, it did not dissapear.
The trick is here:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
'IT 세상 > 자바세상' 카테고리의 다른 글
[펌]Eclipse , Tomcat Server, Oracle DB 연동하기 (0) | 2010.01.25 |
---|---|
오라클 blob, long raw java 예제 (0) | 2010.01.13 |
org.apache.commons.io (0) | 2009.12.28 |
java http file copy....참 쉽죠잉 (0) | 2009.12.28 |
jsp 한글 변수 깨짐 문제 해결[펌] (0) | 2009.12.02 |