톰캣에서 작업한 소스를 WebLogic 에 올리고 나서 이 오류 때문에 한참을 고생했다.
CDATA를 제거 했는데 같이 사용할 수 있는 방법이 없나?
A translation error occurred with taglib and CDATA in a JSP page, as shown in this snippet:
sample.jsp : <%@ page contentType="text/xml" %> <?xml version="1.0" encoding="iso-8859-1" ?> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
<ablock> <![CDATA[ This is a cdata block ]]> </ablock>
When the JSP is compiled using the weblogic.jspc
compiler, here is the output:
"sample.jsp": Translation of /sample.jsp failed: javax.servlet.jsp.JspException: The taglib validator rejected the page: "org.xml.sax.SAXParseException: The element type "jsp:text" must be terminated by the matching end-tag "</jsp:text>"., "
A code fix checks the existence of CDATA while converting the content in XML syntax to a JSP document.
'프로그램 > Java' 카테고리의 다른 글
[Tiles] Tiles2 적용시 No rules found matching 'tiles-definitions 오류 처리 방법 (0) | 2014.04.22 |
---|---|
[Mybatis] INSERT 시에 selectKey 값 받아오기 (0) | 2014.02.26 |
대용량 데이터 엑셀파일 생성 (0) | 2014.02.19 |
[JSP] 커스텀 태그 (0) | 2014.02.15 |
[Eclipse] 이클립스 기본 글꼴을 변경해서 한글을 잘 보이도록 하자 (0) | 2014.02.13 |