Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL functions problem  RSS feed

 
Tushar Madhukar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!