My Oracle Support Banner

How to Display Image in WSRP Portlet That is Consumed in WebCenter Portal (Doc ID 2254555.1)

Last updated on JANUARY 26, 2023

Applies to:

Oracle WebCenter Portal - Version 11.1.1.8.8 and later
Information in this document applies to any platform.

Goal

An image included in a WSRP Portlet is not rendered when it is consumed in WebCenter Portal.  When the underlying Portlet code references an image using a relative URL, the image is not displayed.  Whereas, if the image is referenced using an absolute URL, image displays, but page refreshes repeatedly without user action.

A review of the image (hyper) link when the Portlet is consumed in WebCenter Portal looks like this:
   http://<HOSTNAME>:<PORT>/webcenter/resourceproxy/~.portletId~.....<really...long...string...of...characters...>...../myImage.gif

 

What is the correct way to include image in a WSRP Portlet such that it displays when consumed in WebCenter Portal?

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.