You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Ja...@ky.gov on 2004/01/15 22:17:58 UTC

expressions quit evaluating and become string literals

I'm having a problem with JSTL 1.1.0-B1 under Tomcat 5.0.16 
My pages were working and then I changed something that
causes the expression to not evaluate but simply be printed out.
Example follows:


<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>JSTL Test</title>
</head>
<body bgcolor="#FFFFFF">

<c:set var="blanktext" >
<a1 />
</c:set>
<pre>
<c:out value="${blanktext}" />
</pre>

</body>
</html>



outputs:

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>JSTL Test</title>
</head>
<body bgcolor="#FFFFFF">





<pre>
${blanktext}
</pre>



</body>
</html>


How do I get this working again?

TIA

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: expressions quit evaluating and become string literals

Posted by Kris Schneider <kr...@dotech.com>.
And then I guess you'll want to do this:

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

or just this:

${blanktext}

Quoting Kris Schneider <kr...@dotech.com>:

> Use a Servlet 2.4 deployment descriptor, looks like you're using one for
> 2.3.
> 
> Quoting Jason.West@ky.gov:
> 
> > I'm having a problem with JSTL 1.1.0-B1 under Tomcat 5.0.16 
> > My pages were working and then I changed something that
> > causes the expression to not evaluate but simply be printed out.
> > Example follows:
> > 
> > 
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
> > <!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
> > <html>
> > <head>
> > <title>JSTL Test</title>
> > </head>
> > <body bgcolor="#FFFFFF">
> > 
> > <c:set var="blanktext" >
> > <a1 />
> > </c:set>
> > <pre>
> > <c:out value="${blanktext}" />
> > </pre>
> > 
> > </body>
> > </html>
> > 
> > 
> > 
> > outputs:
> > 
> > <!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
> > <html>
> > <head>
> > <title>JSTL Test</title>
> > </head>
> > <body bgcolor="#FFFFFF">
> > 
> > 
> > 
> > 
> > 
> > <pre>
> > ${blanktext}
> > </pre>
> > 
> > 
> > 
> > </body>
> > </html>
> > 
> > 
> > How do I get this working again?
> > 
> > TIA
> 
> -- 
> Kris Schneider <ma...@dotech.com>
> D.O.Tech       <http://www.dotech.com/>

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: expressions quit evaluating and become string literals

Posted by Kris Schneider <kr...@dotech.com>.
Use a Servlet 2.4 deployment descriptor, looks like you're using one for 2.3.

Quoting Jason.West@ky.gov:

> I'm having a problem with JSTL 1.1.0-B1 under Tomcat 5.0.16 
> My pages were working and then I changed something that
> causes the expression to not evaluate but simply be printed out.
> Example follows:
> 
> 
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
> <!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
> <html>
> <head>
> <title>JSTL Test</title>
> </head>
> <body bgcolor="#FFFFFF">
> 
> <c:set var="blanktext" >
> <a1 />
> </c:set>
> <pre>
> <c:out value="${blanktext}" />
> </pre>
> 
> </body>
> </html>
> 
> 
> 
> outputs:
> 
> <!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
> <html>
> <head>
> <title>JSTL Test</title>
> </head>
> <body bgcolor="#FFFFFF">
> 
> 
> 
> 
> 
> <pre>
> ${blanktext}
> </pre>
> 
> 
> 
> </body>
> </html>
> 
> 
> How do I get this working again?
> 
> TIA

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org