cancel
Showing results for 
Search instead for 
Did you mean: 

image cannot be seen on masthead

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Saravanan_SD
Advisor
Advisor
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all,

Thanks for your input.

At this moment I do not have access to

\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.navigation.masthead\images\

but as Harini sugested I would like to check that images folder in the server.

Also I tried what Subhatra and Saravanan suggested it didnt work. Does it have to do with the type of image?.. i am using a .jpg image, .... i will keep trying....let me know if I have to try anything else...

thnks again for all your suggestions

regards

Priya

Saravanan_SD
Advisor
Advisor
0 Kudos

Hi Priya,

The problem may be with the size of the image. I ve checked the portal themes. Image height is 30px. edit the size of the new image and make a try. There wont be any problem with the jpg format.

Regards,

Saravanan.

Former Member
0 Kudos

Hi,

Try specifying the full path of the image.

<workspace>\<projectname>\dist\images\image.jpg.

I have tried displaying an image stored in the <b>images</b> folder of my project.I retrieved the image in my bean specifying the path as above.

Regards,

M.Subathra

Former Member
0 Kudos

Hi Priya,

Check if the image is present in this path.


usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\com.sap.portal.navigation.masthead\images\

If not, add it manually and check.

Hope that helps.

Regards,

Harini S