fmt:message and variables?

Hello.

I must get a message from a bundle, the problem is that I get the key from a database

So when I try <fmt:message bundle="${bundle}" key="<%=myKey%>"/> I get an error saying it doesn't accepts expressions.

How can I use it or get the message from the bundle using a variable as the key?

Thanks in advance

Nevermind: found it:

<fmt:message bundle="${bundle}"><%=myKey%></fmt:message>

Message was edited by:

OniShiro

[507 byte] By [OniShiroa] at [2007-11-26 16:32:35]
# 1
I am presuming you are using JSTL1.0? The other alternative would be to specify the key as an EL expression rather than a scriptlet expression.
evnafetsa at 2007-7-8 22:57:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...