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

Problem finding image



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%> " />




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:


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

Any ideas ?

Best regards.