Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

image cannot be seen on masthead

Hi

I am customizing MastheadiView.jsp. I downloaded the com.sap.portal.navigation.masthead.par file , renamed it made changes and uploaded it in the portal.

I included a new image in the image folder in the file structure that was imported into the NWDS and then included the code beneath the line <TD class="prtlHeaderFunctionsTable">

<TD>

<img src="<%= (componentRequest.getWebResourcePath() + "/images/imagename.jpg") %>"><border="1"></a>

</td>

Now I am able to execute the iView but the image is missing, I think nwds didnt package the images into the portal.

How should I fix this?

Thanks,

Priya

Former Member
replied

Hi Priya,

I dont think it is necessary to put the image in the server path. Make sure of the image name. It is case sensitive. Give the exact name of the image in the path.

";" is missing in the img src. Try like this.

<img src="<%= componentRequest.getWebResourcePath() + "/images/imagename.jpg"; %>">

Regards,

Saravanan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question