Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jstl tomcat issue  RSS feed

 
Pat Parvathaneni
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a problem running few of the JSTL
(Expression Language) tags in Tomcat 5.0 pre-release
version. I tried the same code even in 4.1.12 version
as well, the problem still persists.

I have created a directory called myapps under the
webapps directory in Tomcat(4.1.12). Within myapps are
two folders: jsp and WEB-INF. In jsp I have placed
the requisite jsp/HTML pages. In WEB-INF I placed all
the required TLD's and created a folder called lib to
house all the jar files. My JSLT is version
1.0.3, which I downloaded as
jakarta-taglibs-standard-1.0.3.zip.
When I start my non-JSTL-based jsp it works fine so I
know my directory structure is correct.
The output for the following code is also listed
below.
<%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>Take The Pizza</title>
</head>
<body>
<table border="1">
<tr>
<td>
Name:
</td>
<td>
<c ut value="Hello ${param.name} "/>
${param.name}
</td>
</tr>
</table>
</body>
</html>

When I try to run my JSTL-based jsp I get the
following output:
_______________
Name: Hello J2EErocks ${param.name}
_______________
Here <c ut seem to work fine , but ${param.name} is
treated as text.
I have also tried putting the tld files into the
WEB-INF directory and linking
to them by using the web.xml file:
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
but still get the same error.
Sure appreciate some advice .
Thanks very much,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!