cancel
Showing results for 
Search instead for 
Did you mean: 

Problem finding image

Former Member
0 Kudos

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:

String ImageURL = componentRequest.getPublicResourcePath() + "/images/head_group_ien.gif";

<hbj:image

id="Image"

width="253"

height="50"

src="<%= ImageURL %>"

alt="">

</hbj:image>

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

Deploy the component to the portal.

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

file:///C:/usr/sap/POP1/j2ee/j2ee_00/cluster/server/services/servlet_jsp/work/jspTemp/irj/root/portalapps/PublishingTool/images/head_group_ien.gif

I open the source of the jsp page in the browser, copies the adress and paste it into an explorer window at the server. And I find the image.

Anyone that have a clue?

Brgds// -Fred

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member81750
Active Participant
0 Kudos

Have you tried this code

<% String ImageURL = componentRequest.getWebResourcePath() + "/images/"; %>

Best Regards

Pankaj

Former Member
0 Kudos

_