Skip to Content
0
Former Member
Apr 13, 2005 at 09:53 AM

Problem finding image

21 Views

Hi

I want to add an image to my portalcomponent that I have developed in Eclipse. I put the image in the images folder of the project. Add the code to the JSP:

-


<hbj:form id="myFormId" >

<% String ImageURL = componentRequest.getPublicResourcePath() + "/images/logo.gif"; %>

<hbj:image id="Logo" alt="Image not found" src=" <%=ImageURL%> " />

<br>

</hbj:form>

-


This according to the example that can be found in the portal 6.

Deploy the component to the portal.

Result: image is not displayed, "image not found text" is displayed. When I check on the properties and the URL address it shows:

E:\usr\sap\DP1\DVEBMGS00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\myproject/images/logo.gif

I've checked that the image is present on the folder, it's ok.

Any ideas ?

Best regards.