Results 1 to 4 of 4

Thread: Spring equivalent of bean:message

  1. #1

    Default Spring equivalent of bean:message

    Hello,

    is there a spring taglib equivalent of the rather useful struts tag?

    <bean:message key="my.message" />

    Thanks.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    how about
    Code:
    <spring:message key="my.message"/>
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    Close... the attribute 'key' is not valid.

    This works...

    <spring:message code="my.message"/>


  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    I shouldn´t copy & paste .
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •