Your code does not conform to the spec. Try this:
<bean:message key="<%=\"label.anylabel\"+bean1%>"/>
So the message tries to explain the %> is missing behind the first “. Well, a better mark of the error location would be helpful.
The spec requires an explicit quoting of “:
RTAttributeValueDouble::= ( ( QuotedChar – ‘”’ )* -(
( QuotedChar – ’”’ )* ’%>’ )
If some container works with your code, the container is buggy.
NOP