Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 23, 2010 at 12:10 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2010 at 10:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded