• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSTL functions problem

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic