Question
For getLocalizedText() what is the syntax we need to use in JSP code.
Hi , i have some JSP code like below
<%
String ContInfo = "Contact: "+Contact+" "+PhoneNumber;
%>
I want to localized Contact:
i was tried the bellow syntax:
1)@(Pega-RULES:Utilities).getLocalizedText("Contact:","pyCaption",tools)
2) <pega:lookup property=".pyCaption" value="Contact:"/>
i was tried like below
syntax1
<%
String ContInfo = "@(Pega-RULES:Utilities).getLocalizedText("Contact:","pyCaption",tools) "+Contact+" "+PhoneNumber;
%>
syntax2
<%
String ContInfo = "<pega:lookup property=".pyCaption" value="Contact:"/> "+Contact+" "+PhoneNumber;
%>
could you please help me how to call getLocalizedText in JSP code.
***Updated by moderator: Lochan to add Categories***
Below code is working for me.
<%
String Contact = "Kiran";
String PhoneNumber = "0987654321";
String ContInfo = tools.getLocalizedTextForString("pyCaption", "Contact") +Contact+" "+PhoneNumber;
tools.putSaveValue("result", ContInfo);
%>