I have headers which can be multilingual and come from a properties file.

 

The following is my code:

 

  1. <display:table name="displayableItemsVector" id="row" export="true" >
  2. <display:column title="<bean:message key='attendee.firstName'/>" ><c:out value="${row[0]}"/></display:column>
  3. <display:column> <c:out value="${row[1]}"/></display:column>
  4. <display:column> <c:out value="${row[2]}"/></display:column>
  5. <display:column> <c:out value="${row[3]}"/></display:column>
  6. <display:column> <c:out value="${row[4]}"/></display:column>
  7. <display:column> <c:out value="${row[5]}"/></display:column>
  8. <display:column> <c:out value="${row[6]}"/></display:column>
  9. <display:column> <c:out value="${row[7]}"/></display:column>
  10. <display:column> <c:out value="${row[8]}"/></display:column>
  11. <display:column> <c:out value="${row[9]}"/></display:column>
  12. </display:table>

 

I am unable to get title to print the header using <bean:message> in Line 2.

 

Any suggestions.

 

Incidentally can someone tell me how I can get lines 2 – 11 in a for loop using JSTL or <beans:iterate> where the total number of Elements is known before-hand and can be made available using the following line of code before the code-sequence shown above:

 

<% Integer i = request.getAttribute(“size”);

pageContext.setAttribute(“i”, (Object) i );

%>

 

Thanks.

 

Chetan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to