image cannot be seen on masthead
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">
<img src="<%= (componentRequest.getWebResourcePath() + "/images/imagename.jpg") %>"><border="1"></a>
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?
Saravanan Sasikala Duraisamy replied
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"; %>">