Java Core Taglib Help

Hello All,

I'm trying to print out the value of a request parameter with the following code in my jsp:

<c:out value="${param.method}"/>

However, what is displayed on my screen is literally ${param.method} instead of the value.

I've placed c.tld in my WEB-INF directory and standard.jar and jstl.jar are in my classpath. Any ideas on what might be going wrong?

Thanks!

[412 byte] By [jlp86a] at [2007-11-26 20:16:16]
# 1

What is the specific error your are getting ?

Have U configured the tag lib descriptor(c.tld) under web.xml ?(specifying URI & tld path)

what is the URI & perfix you are using inside the JSP you working on ?

it would be great if you can post your answers to these questions & other insigthful information to fix this issue.

RahulSharnaa at 2007-7-10 0:38:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I also have the same problem here..

Here is my web.xml..

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

<display-name>Tag Tutorial</display-name>

<description>A Taglib Tutorial.</description>

<welcome-file-list>

<welcome-file>index.jsp</welcome-file>

</welcome-file-list>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>

<taglib-location>/WEB-INF/fmt.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/fmt-rt</taglib-uri>

<taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>

<taglib-location>/WEB-INF/c.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/core-rt</taglib-uri>

<taglib-location>/WEB-INF/c-rt.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>

<taglib-location>/WEB-INF/sql.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/sql-rt</taglib-uri>

<taglib-location>/WEB-INF/sql-rt.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/x</taglib-uri>

<taglib-location>/WEB-INF/x.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jsp/jstl/x-rt</taglib-uri>

<taglib-location>/WEB-INF/x-rt.tld</taglib-location>

</taglib>

</web-app>

All the tld files are inside the WEB-INF. The standard.jar and the jstl.jar are both inside WEB-INF/lib. By the way, I'm using Apache Tomcat 5.5.. Thanks in advance!

Jeriela at 2007-7-10 0:38:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
No need to reply.. Problem is solved.. Thanks anyway!
Jeriela at 2007-7-10 0:38:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...