This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL functions problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSTL functions problem" Watch "JSTL functions problem" New topic
Author

JSTL functions problem

Tushar Madhukar
Ranch Hand

Joined: May 03, 2006
Posts: 36
Hi,

I have a JSP in which a list of strings is processed. The list is iterated and all occurences of a particular char is replaced by another char in each string. Here is the snippet:


The problem is that the EL parser (or whatever) is not processing the <fn:replace> tag. The output HTML contains the tag as it is.
I have declared the taglib directive properly as :

and the corresponding TLD is also in the proper path.

Can anybody point out where am I going wrong?

Thanks.
[ February 19, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Hmm, that all looks ok upon initial inspection. The only thing that seems a little suspicious is:

and the corresponding TLD is also in the proper path.


Did you remove the TLD from the jar file and put is somewhere? If so, that's not the right thing to do. All you need to do is to put the JSTL jar files in WEB-INF/lib (or shared location) and the container will find the TLD files inside the jar files.

Otherwise, it's easy for the TLD to get out of sync with the jar files.

But unless that has already occured, I'm not sure if it can account for your issue.

I'd try writing a simple JSP file that only contains a function reference to see if I could gather more data on the issue.
[ February 19, 2007: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSTL functions problem
 
Similar Threads
help me to avoid scriptlets, declaration & expression...
JSP Struts/JSTL Form problem
Problem with nested c:forEach
Handling apstrophe with JSTL
jstl-el problem