Supposing that I have a variable that contains a dynamic label how can I achieve something like this (navigation is a request scope attribute):
<fmt:message var='<c:out value="${navigation}"/>'/>
Or
<bean:message var='<c:out value="${navigation}"/>'/>
Actually until now was handled like this :
<%
String navigation = (String)request.getAttribute("navigation");
%>
<bean:message var='navigation'/>
But this way of doing things was good ten years ago.
Something like:
Are you sure you mean to use
var=and notkey=using thevar=attribute puts the value of the message in a variable named that value, and doesn’t output it to the response.Note this could also be written as: