cancel
Showing results for 
Search instead for 
Did you mean: 

regarding the address to locate picture in jar deployed

Former Member
0 Kudos

Hi friends:

I deployed a jar which has a picture used for backgaroud(background="<root>common/banner.jpg">). but I don't know it absolute address, could you please give me your solution to find it to show the picture?

thank you very much

*****************************************************************

<TABLE id=layout-top-banner height=101 cellSpacing=0 cellPadding=0 width="100%"

border=1 background="<%root%>/../common/banner.jpg">

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try the below code

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

<hbj:image id="image" src="<%= ImageURL+\"img.gif\" %>" alt="" >

Regards

Suresh

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Sony,

Use the STYLE attribute to display the backgroung image.Hope it should wotk.

PFB the sample code:

<TABLE ID="layout-top-banner" HEIGHT="100" CELLSPACING="0" CELLPADDING="0" WIDTH="100%"

STYLE="<%root%>/../common/banner.jpg>"; BORDER=1 >

Regards,

Lavanya.G