/    Sign up×
Community /Pin to ProfileBookmark

How to display link and use it ?

I have following code in jsp file

[code] {%>

<div id=”image_1″ style=”position: absolute; left:2px; width: 300px; z-index: 0;”>
<a id=”image_link_1″ href=”<%=link_url%>” target=”<%=link_target%>”>
<img id=”Img1″ src=”<%=image_src%>” height=”190px” alt=””/>
</a>
</div>
<% }
%>[/code]

In this code url for the link and target (_self or _blank) are obtained dynamically. When I implementy this code, I can only see the image which is obtained as a result of <img id=”Img1″ src=”<%=image_src%>” height=”190px” alt=””/>. I dont get the linkanywhere on or around the image. How can I see and use the link in here ?

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@bubakJun 24.2009 — One thing to verify is link_url is not empty. I have had problems in the past with links if href="".
×

Success!

Help @manishrathi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...