on 06-23-2010 10:20 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.