Title: RE: Dynamic columns with JSTL expressions

You need to use JSTL and JSP Scriplet <% %> into title.  Following _expression_ does not work. Use title=”<%= whatever %>”
                <display:column property="next" title="${col.label}"

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bhatti, Shahzad
Sent: Monday, November 13, 2006 11:16 AM
To: Bhatti, Shahzad; [email protected]
Subject: Re: [displaytag-user] Dynamic columns with JSTL expressions

 

After searching through archive, I found this problem is related to jstl tags in display:column not working within c:foreach. However, I didn't see any resolution. Has anyone seen this and found a reliable resolution. Apparently the example below had same problem, I would just like to see the example at http://displaytag.homeip.net/displaytag-examples-1.1/example-columnlist.jsp working.

_____________________________________________
From:   Bhatti, Shahzad 
Sent:   Thursday, November 09, 2006 10:42 AM
To:     '[email protected]'
Subject:        Dynamic columns with JSTL expressions

I am using displayTag to display a dynamic report where columns are stored in a metalist. I am using example from
http://displaytag.homeip.net/displaytag-examples-1.1/example-columnlist.jsp
And for most part the code work, however displayTag is not evaluating JSTL _expression_ correctly. For example, in the code it shows:

<display:table name="test">
    <c:forEach var="cl" items="${collist}">

                <display:column property="next" titleKey="${col.label}" escapeXml="true" sortable="true" decorator="com.amazon.biw2.webapp.taglib.ReportColumnWrapper" />
    </c:forEach>
  </display:table>

However, in the html report instead of using value of col.label it's actually spitting "${col.label}" as it is.
I have also verified that jstl loop outside display tag works and it evaluates them correctly, but inside displayTag it's not evaluating the jstl _expression_. Any ideas.

Thanks in advance.
Shahzad Bhatti

 

PS: I am initializing ${collist} same as the example code, i.e., it is an ArrayList where each element is Map and map contains 'label' and other properties.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to