I'd like to be able to include the return value of a fmt tag in another tag:
<local:roundedBox boxTitle="<fmt:message key="somekey"/>">
content
</roundedBox>
I've run into this problem multiple times and it just seems like a stupid limitation of jsp. Is there a simple way around this?
Use an intermediate variable to store the result like this (code not tested)
<fmt:message key="somekey" var="formattedvarname" />
<local:roundedBox boxTitle="${formattedvarname}">
content
</roundedBox>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.