I want to customize the messages properties (like struts 1) with {0}
variable:

 

message.remove=Are you sure you want to remove: {0}?

 

But how I can call in my JSP the message with the variable?

 

I try this, but it doesn't work:

<s:set var="msg" value="%{getText('message.remove', item.name)}" />

<s:set var="msg" value="%{getText('message.remove', {item.name})}" />

<s:set var="msg" value="%{getText('message.remove', #{item.name})}" />

 

 

Also, how I can retrieve a message from the resources.properties from a
freemarker template (.ftl file)?

 

Regards

Arnaud.

 

Reply via email to