Menu

need help with parameter substitution

Help
Prasad K
2017-11-29
2017-11-30
  • Prasad K

    Prasad K - 2017-11-29

    Hi,

    I am using freemarker template for email generation. I use freemark in conjunction with spring. I am having a tough time to get internationalization working with parameter substituion. I got it to work for one parameter substition.

    example :
    message.hello = Hello, {0}

    in fm template

    I have something like

    <@spring.messageArgs "message.hello" name />

    however, I am not able to figure out how we do it for multiple param substitution.
    message.greet = Hello {0}, welcome to {1}

    how can I represent this in the template?

    when I try the following:

    <@spring.messageArgs "message.greet" name, place />

    it does not work. could you please help here?

    regards
    PRasad

     

Log in to post a comment.