Expression language in jsp, not putting the HTML markup correctly

Avatar

Avatar

Sunil_Chowdhary

Avatar

Sunil_Chowdhary

Sunil_Chowdhary

20-10-2016

Hi Experts,

Issue : double equals(==) gets changed to single equal(=)

Issue explanation : If a property(say named "abc") with value "<img src="https://imagescde==" alt="scam" width="699" height="466" />" is saved in a node(can be jcr:content node of page  or any component node below it).

Code to read the property value in jsp :

${pageProperties.abc}

Instead of o/p as : <img src="https://imagescde==" alt="scam" width="699" height="466" />

It gives below o/p : 

<img src="https://imagescde=" alt="scam" width="699" height="466" />

One equals sign gets removed from src value resulting in image not getting loaded.

[Note : We don't have access to change the src value as we are getting such value

from third party server as json feed and creating pages from feed using scheduler]

Any suggestion will be highly appreciated.

View Entire Topic

Avatar

Avatar

Anton_Smulskiy

Avatar

Anton_Smulskiy

Anton_Smulskiy

21-10-2016

Just as assumption: try to change " to ' in your property value.