Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jstl value into jsf tags  RSS feed

 
Nishita Jain
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
how we can retrive value of jstl tag into jsf tags.
i mean
if i write
<c:foreach var="a" items="${backingBean.all}">
i can get that value like
<c ut value="${test.testName}"/>
how can i get that value using something like this,
<h utputText id="testname" value="#{test.testName}"/>

Thnaks,
Nishita
[ April 04, 2006: Message edited by: Nishita Jain ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can with the Unified Expression Language.
Everything described here :
http://java.sun.com/products/jsp/reference/techart/unifiedEL.html
 
Nishita Jain
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i read that link and i think it was hard to understand for me.
but what i understood was i have to change some tag lib and that they have written that it only works in Glassfish. is that Glassfish server? pl let me know am i correct? i m using Tomcat server.
any other link or any other solution
[ April 07, 2006: Message edited by: Nishita Jain ]
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at my "Test-Driving the JSF 1.2 RI Implementation on Tomcat" article if you are interesting about running it on Tomcat.
Unified EL requires JSP2.1 container. Only Glassfish server has it now. That is the reason it cannot work on the current Tomcat as is.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!