Question
1
Replies
113
Views
Tata Consultancy Services
Posted: February 21, 2020
Last activity: February 22, 2020
Referring a value from JSP code in Java snippet
I have a requirement where I am looping through a page list using Pega JSP tag,
so using the embedded property on current page item as argument/parameter I want to call a Java function (used Java Snippet tags to call them <%= %>)
***Edited by Moderator Marissa to update platform capability tags; Update Pega Academy to General****
Hi Benim,
Thanks for posting the query.
Can you please elaborate your requirement. As per the context, it seems that you want to call the java function from the JSP code. To call a java function inside JSP you can use scriptlet (<% %> ) tag. If you want to call a Pega activity from JSP then use below snippet.
<%
Pega_rules_utilities.callActivity(PrimaryPage, "ActivityName", ParameterPage);
%>