on 05-21-2010 8:03 AM
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">
Hi,
Try the below code
String ImageURL = componentRequest.getPublicResourcePath() + "/../images/";
<hbj:image id="image" src="<%= ImageURL+\"img.gif\" %>" alt="" >
Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.