Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

jsp binary tag is not working

SA-4021
SUMMARY

jsp binary tag is not working (image does not render). the code is in html rule LetterHeader

<p align="right">
<pega:binaryfile name="image.jpg" app="webwb" />
<pega:reference name=".LetterGenerationDate" />
</p>
<p>
<pega:reference name="pyWorkPage.pyWorkParty(XXXX).Name" />
<pega:reference name="pyWorkPage.pyWorkParty(XXXX).AddressLine1" />
<pega:when java="<%= !tools.getProperty("pyWorkPage.pyWorkParty(XXXX).AddressLine2").equals("") %>"> <pega:reference name="pyWorkPage.pyWorkParty(XXXX).AddressLine2" />
</pega:when>
<pega:reference name="pyWorkPage.pyWorkParty(XXXX).pyCity" /> , <pega:reference name="pyWorkPage.pyWorkParty(XXXX).pyState" /> , <pega:reference name="pyWorkPage.pyWorkParty(XXXX).pyPostalCode" />
</p>
<p>
<strong></strong>
</p>

ERROR MESSAGES

There is no error messages but the image is not displayed.

STEPS TO REPRODUCE

generate html and jpg image should display

ROOT CAUSE

The root cause of this problem is a defect in user’s application code/rules.

RESOLUTION

This issue is resolved through the following local change: 
Changed users’s code for the jsp binary tag from:
<pega:binaryfile name="image.jpg" app="webwb" />.
to:
<img src='<pega:binaryfile name="image.jpg" app="webwb" />' />

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us