tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Rausch <>
Subject Re: Substitution of a variable in a variable
Date Tue, 29 Mar 2005 13:21:05 GMT

try name_<c:out value="${language}"/>

Robert Rausch
IT/Specialist eBusiness National Practice
IBM Certified Solutions Expert -
 IBM WebSphere Commerce, Business Edition V5.4, Customization
Sun Certified Programmer for the Java 2 Platform 1.4
Home Office (877 837-8670, Tie Line 930-5377

             Christoph Pilka                                               
   >                                                     To 
             03/29/2005 06:32                                           cc 
                                       Substitution of a variable in a     
             Please respond to         variable                            
              "Tag Libraries                                               
                Users List"                                                

Hi folks,

anyone knows how to express the following snippet?

<sql:query var="myQuery">
  SELECT name_${language}, iso3166 FROM countries ORDER BY name_${language}
<c:forEach var="row" items="${myQuery.rows}">
  <option value="<c:out value='${row.iso3166}' />">

The expression ${row.name_${language}} is the one making trouble. How to
substitute a variable in a variable?

Mni thx,

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message