File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes jstl value into jsf tags Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "jstl value into jsf tags" Watch "jstl value into jsf tags" New topic
Author

jstl value into jsf tags

Nishita Jain
Ranch Hand

Joined: Mar 30, 2006
Posts: 97
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 ]

Nishita
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14669
    
  11

You can with the Unified Expression Language.
Everything described here :
http://java.sun.com/products/jsp/reference/techart/unifiedEL.html


[My Blog]
All roads lead to JavaRanch
Nishita Jain
Ranch Hand

Joined: Mar 30, 2006
Posts: 97
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

Joined: May 29, 2003
Posts: 167
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jstl value into jsf tags
 
Similar Threads
(JSTL) iterate - foreach eqivilant
problem with c:forEach and links
Jstl with Struts Html tags
jstl nested inside bean:write tag ?
Brain burp! Can't get the right Data Grid layout