on 05-04-2006 10:51 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.