Skip to content

Instantly share code, notes, and snippets.

@bokks
Last active June 22, 2020 17:16
Show Gist options
  • Save bokks/f78aad417855e559b342da8cc6fecb97 to your computer and use it in GitHub Desktop.
Save bokks/f78aad417855e559b342da8cc6fecb97 to your computer and use it in GitHub Desktop.
This is an encryption pattern that is useful for encryption of url literals in the jsp/html directly
/* This pattern is useful when the url is a literal in the markup */
/* Example 1 */
/* Original */
<td id="navigationTD" nowrap class="textCoverLabel" style="padding:0px 5px 0px 5px">
<a href="<pega:reference name='pxRequestor.pxReqURI' mode='normal' />?pyActivity=Open&Action=Review&HarnessPurpose=Review&AllowInput=false&InsHandle=<%=tools.getStepPage().getInstanceHandle()%>" title="Open this" class="titleBarLink">Open Item</a></td>
</td>
/* Encryption notice how even dynamic parameters can be encrypted*/
<td id="navigationTD" nowrap class="textCoverLabel" style="padding:0px 5px 0px 5px">
<a href="<pega:reference name='pxRequestor.pxReqURI' mode='normal' />?<%=pega_rules_utilities.pzEncryptURLActionString(tools, "Thread","pyActivity=Open&Action=Review&HarnessPurpose=Review&AllowInput=false&InsHandle="+tools.getStepPage().getInstanceHandle())%>" title="Open this" class="titleBarLink">Open Item</a></td>
</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment