Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JSF + JSTL

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can I use JSTL tags with JSF? I am trying to use it, but JSTL tags are not working, probably the bean in request is not visible to jstl tags.

I am using this to have the bean available in request scope
<%-- jsf:pagecode language="java" location="/JavaSource/com/dest/web/pagecode/LogView.java" --%><%-- /jsf:pagecode --%>

When I use <jsp:usebean> the jstl tags works fine, but I dont want to use it as using jsf:pagecode and jsp:usebean together calls the constructor of backing bean twice which I dont want.

Thanks,
Yasir
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If using JSF 1.1 or below, you are going to run into issues with it and JSTL. JSF 1.2 is supposed to be able to play nice with JSTL.
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic