ISA Custom Java Message
I am working on a requirement where I need to dispaly a error message based on product value in Java. The product value should appear in the message.
I am aware of displaying the static error message by writing some code in JSP and XLF files. But how to display the message with the product name which is not static.
I know that we need to add placeholder in the message key of the XLF file. But how to pass the value to the placeholder in the message.
Make the entry in xlf file like below
b2b.zproduct.msg = product is not valid.
Now to dynamically enter the product in above message enter similar lines in your jsp.
<isa:translate key="b2b.zproduct.msg" arg0="<%= ui.getProduct() %>"/>
Hope this helps you.