cancel
Showing results for 
Search instead for 
Did you mean: 

ISA Custom Java Message

Former Member
0 Kudos

Hi,

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.

Regards

MQ

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi MQ,

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.

Regards,

Arshi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi MQ,

Use the placeholder in the xlf file and pass the value as a parameter in the JSP file.

<isa.translate.key = "key", arg0="value">.

Regards

V. Suresh Kumar