cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent: Displaying image in JSPPAge in Abstract Portal Component.

Former Member
0 Kudos

Hi all.

In my application, i need to display the image in a table cell. My JSP page is under dist\portal-inf\jsp\ and my image is under dist\images\. I am calling the image from my page using

<td>

<image src = "..\..\images\image.jpg"></td>

and i am trying with the absolute path also i.e., <src = "C:\Programfiles\....">

But image is not displaying.

Can anyone kindly helpme how to rectify this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To access an image in your application u need to give the :

/irj/portalapps/application name/project name/folder/*.jpg

e.g

<img src="/irj/portalapps/com.tsl.portal.runtime.logon/layout/intro_logo.jpg" border="0">

If helpful please reward with points.

Thanks

ritu

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Call it this way:

src="/irj/portalapps/your par file name/project name>/images/image.jpg"

You can't use the absolute path as the file is application is esecuted on the portal server, not from any local machine.

Hope this helped. If it did, kindly consider rewarding points.

Thanks and Regards,

Prem

SAP.

Message was edited by:

Prem Mascarenhas