• 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

Why are my JSTL tags not being interpreted in my JSF page?

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a JSF page (.xhtml extension). In it I have the following..



But this JSTL code is not being interpreted. When the page loads it shows both Invoice and Credit Memo and I do view source I see "<c:choose" in my source. I made sure JSTL 1.2 jar is there in my WEB INF/lib.

What else could be missing? Is JSTL not supported on xhtml pages?

Thanks.>
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jehan Jaleel wrote:Is JSTL not supported on xhtml pages?


Dont know.

but, I dont see JSTL taglib directory definition.

SetupJstlForJsp2
 
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
Please be sure to ask JSF questions in the JSF forum. I have moved this post there for you.
 
Jehan Jaleel
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Seetharaman Venkatasamy wrote:

Jehan Jaleel wrote:Is JSTL not supported on xhtml pages?


Dont know.

but, I dont see JSTL taglib directory definition.

SetupJstlForJsp2



Does this not do the trick for JSTL taglib directory..

<ui:composition
xmlns:c="http://java.sun.com/jstl/core">
 
Jehan Jaleel
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figuered it out. Seems JSTL tags do not work inside JSF datatable. When I changed to the following it worked...
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is practically no reason for ever using JSTL in JSF pages, because the same functions are available via native JSF tags - which, unlike JSTL - are aware of the JSF environment.
 
reply
    Bookmark Topic Watch Topic
  • New Topic