You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jerry Malcolm <te...@malcolms.com> on 2016/08/06 14:48:29 UTC

Enabling ${...} Syntax for JSTL in JSPs

I have several sites that all run on the same server.  All of them use 
XML extensively for the model data and use JSTL to extract the XML data 
and display the data on the JSP pages.  I had to do some maintenance on 
the JSP code structure for one of the sites, rearranging and changing up 
headers, include files, etc, and I broke something.  All of the pages 
still compile and display fine.  But now, any of the places on the page 
where I use ${....} to display an XML data value, the page now just 
shows, for example, the literal "${name}" string instead of the name 
itself. If I use <x:out select="$name"/> it works fine.  So it's just 
that the compiler is no longer recognizing ${...} syntax.

I'm using TC 8.0.24.  But I'm pretty sure this has nothing to do with TC 
since it used to work and everything still works fine on the other sites 
on the same server.  I know I did something stupid and messed something 
up that caused this.  But I'm at a loss for where to start looking.  
What could I possibly have done to turn off the JSP compiler from 
recognizing and resolving ${...} syntax?

Thanks.

Jerry


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Enabling ${...} Syntax for JSTL in JSPs

Posted by Mark Thomas <ma...@apache.org>.
On 06/08/2016 15:48, Jerry Malcolm wrote:
> I have several sites that all run on the same server.  All of them use
> XML extensively for the model data and use JSTL to extract the XML data
> and display the data on the JSP pages.  I had to do some maintenance on
> the JSP code structure for one of the sites, rearranging and changing up
> headers, include files, etc, and I broke something.  All of the pages
> still compile and display fine.  But now, any of the places on the page
> where I use ${....} to display an XML data value, the page now just
> shows, for example, the literal "${name}" string instead of the name
> itself. If I use <x:out select="$name"/> it works fine.  So it's just
> that the compiler is no longer recognizing ${...} syntax.
> 
> I'm using TC 8.0.24.  But I'm pretty sure this has nothing to do with TC
> since it used to work and everything still works fine on the other sites
> on the same server.  I know I did something stupid and messed something
> up that caused this.  But I'm at a loss for where to start looking. 
> What could I possibly have done to turn off the JSP compiler from
> recognizing and resolving ${...} syntax?

The most likely cause is you added:

<%@ page isELIgnored="true" %>

to some pages as a result of your refactoring.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org