Expression language in jsp, not putting the HTML markup correctly | Community
Skip to main content
Sunil_Chowdhary
New Participant
October 20, 2016
Solved

Expression language in jsp, not putting the HTML markup correctly

  • October 20, 2016
  • 4 replies
  • 2021 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sunil_Chowdhary

Hi Anton,

Thanks  for your suggestion( change " to ' ), it's working fine when value is <img src='https://imagescde==' alt='scam' width='699' height='466' /> .

May be we need to request third party to change double quotes to single quotes or need to figure out another workaround to make it work.

4 replies

Sunil_Chowdhary
Sunil_ChowdharyAuthorAccepted solution
New Participant
October 24, 2016

Hi Anton,

Thanks  for your suggestion( change " to ' ), it's working fine when value is <img src='https://imagescde==' alt='scam' width='699' height='466' /> .

May be we need to request third party to change double quotes to single quotes or need to figure out another workaround to make it work.

Anton_Smulskiy
New Participant
October 22, 2016

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

Sunil_Chowdhary
New Participant
October 21, 2016

Yes @smacdonald2008.

smacdonald2008
New Participant
October 20, 2016

Are you saying the code in your script is being modified from  '==' to '='