bean:message usage


Web tier: servlets, JSP, Web frameworks: bean:message usage

  1. bean:message usage (1 messages)

    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.

    Threaded Messages (1)

  2. bean:message usage[ Go to top ]

    Unfortunately this is not possible: compiler makes only one pass and at this point it should understand what string it has to insert...