wood burning stoves 2.0*
The moose likes JSF and the fly likes Why are my JSTL tags not being interpreted in my JSF page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Why are my JSTL tags not being interpreted in my JSF page?" Watch "Why are my JSTL tags not being interpreted in my JSF page?" New topic
Author

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

Jehan Jaleel
Ranch Hand

Joined: Apr 30, 2002
Posts: 196
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.>
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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

Dont know.

but, I dont see JSTL taglib directory definition.

SetupJstlForJsp2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61002
    
  65

Please be sure to ask JSF questions in the JSF forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jehan Jaleel
Ranch Hand

Joined: Apr 30, 2002
Posts: 196
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

Joined: Apr 30, 2002
Posts: 196
I figuered it out. Seems JSTL tags do not work inside JSF datatable. When I changed to the following it worked...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16014
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Why are my JSTL tags not being interpreted in my JSF page?