| Article: |
Six Cool New JSP and Servlet Features | |
| Subject: | <c:out/> and escaping | |
| Date: | 2004-02-12 10:14:45 | |
| From: | bperry | |
|
Response to: |
||
|
I will add to your helpful comment: Using Tomcat 5.x, include the following code in a JSP: <c:set var="myValue" value="a tag </tag>" />
|
||
Showing messages 1 through 3 of 3.
-
<c:out/> and escaping
2004-02-12 10:18:37 bperry [Reply | View]
-
<c:out/> and escaping
2004-02-12 10:22:17 bperry [Reply | View]
Oh well, that didn't display properly either...The c:out element outputs the character entities and the "EL in template" form outputs the actual tag in this case, which ends up embedded in the underlying HTML. -
<c:out/> and escaping
2004-05-22 07:24:55 wanjm [Reply | View]
but when i write the sentence in a jsp file.
if displays :${myValue} ${myValue} when i use the sentence
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
but when i use
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
it displays a tag </tag> ${myValue} on the screen.
could you tell me the reason.
i am using tomcat 5.0.16;





a tag </tag></ br>
a tag </tag>