Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ISA Custom Java Message

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

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question