I want to do something like the following, but I can't get it to work:
<bean:message key="message.hi" arg0='<bean:write name="a" scope="session" property="name"/>'/>
In other words, I want to look at the session attribute "a" for a property called "name" and use it as arg0 for the bean:message. When I look at the generated Java source I see that the arg0 property is simply being set to the literal string "<bean:write...", rather than evaluating it.
Unfortunately this is not possible: compiler makes only one pass and at this point it should understand what string it has to insert...