Skip to Content
0
Former Member
May 03, 2007 at 12:00 PM

hbj:link

34 Views

HI All,

Im trying to put an image in an iView. Now when I click on this image a Java Script function should get called to print the content of the iView.

Im using the following code but it doesnt seemd to work.

Please tell me what am I missing

<%

String PrintURL=componentRequest.getPublicResourcePath()

+ "/../images/";

%>

<hbj:link

id="print"

text=""

reference=""

target="_TOP"

tooltip="Print this iView which contains my CV"

onClick="printCurrentPage"

<hbj:image

src="<%= PrintURL+"sap.gif" %>"

alt="Image not available" />

</hbj:link>

When I run this on the portal it gives the following error.

Expecting '=' instead of '<'. Error in file:/usr/sap/D75/JC46/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.ericsson.pct.hcm.cpcv/pagelet/cpcvphoto2.jsp at line:48 position:4.

Line 48 is : onClick="printCurrentPage"

but I think the error sems to be in : <b>src="<%= PrintURL+"sap.gif" %>"</b> since the last delimiter is not turning red.

Plz help.

Regards

Saurabh