tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Rausch <raus...@us.ibm.com>
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                                               
             <c.pilka@provacan                                             
             za.de>                                                     To 
                                       taglibs-user@jakarta.apache.org     
             03/29/2005 06:32                                           cc 
             AM                                                            
                                                                   Subject 
                                       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}
</sql:query>
<c:forEach var="row" items="${myQuery.rows}">
  <option value="<c:out value='${row.iso3166}' />">
    ${row.name_${language}}
  </option>
</c:forEach>

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

Mni thx,
Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


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