String concatenation in EL for dynamic ResourceBundle key
问题 I have a resource bundle with entries like these: entry1=value1 entry2=value2 entry3=value3 In my JSF page I\'m trying to use these keys dynamically. The ID of the entry is coming from a managed bean. I think it should be something like this: <h:outputText value=\"#{msg[\'entry\' managedBean.entryIndex]}\"/> How can I achieve this? 回答1: If you're already on Servlet 3.1 / EL 3.0 (Tomcat 8, WildFly 8, GlassFish 4, etc), make use of new EL 3.0 += operator: <h:outputText value="#{msg['entry' +=