You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/08/20 23:04:17 UTC
DO NOT REPLY [Bug 30780] New: -
JSTL tags don't work for jsp (xml) documents
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30780>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30780
JSTL tags don't work for jsp (xml) documents
Summary: JSTL tags don't work for jsp (xml) documents
Product: Tomcat 5
Version: 5.0.27
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: brett@knightsofthenet.com
Hi,
JTSL tags don't work as expected in an xml formatted jsp file.
e.g.
my page starts off
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:jsai="/tld/jsai"
xmlns:spring="/spring"
xmlns:c="http://java.sun.com/jsp/jstl/core"
>
the http://java.sun.com/jsp/jstl/core namespace is bound to c: as a prefix
later in my document I have:
<spring:bind path="searcher.itemVendor">
<c:if test="${status.error}"><font
color="red">${status.errorMessage}</font></c:if>
</spring:bind>
This doesn't work unless I enter it as:
<spring:bind path="searcher.itemVendor">
<c:if test="${status.error}" xmlns:c="http://java.sun.com/jsp/jstl/core">
<font color="red">${status.errorMessage}</font></c:if>
</spring:bind>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org