This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes html:link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:link" Watch "html:link" New topic


Ranch Hand

Joined: Oct 09, 2003
Posts: 517
Hi all,

I am facing a problem.I have a <html:link > likr this
<html:link action="anatomyMasterBeginAction?myActionIs=view" paramId="primaryKey" paramName="records" paramProperty="primaryKey"><img src="../../images_emr/view.gif" width="21" height="19" border="0"></html:link>

This will perform a delete operation.Before doing delete operation i need to get a confirmation.So i have to populate a confirmation box to confirm the operation from user....
how can i do this...........

please help me........
[ August 18, 2006: Message edited by: Vinod Ennes ]

God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
please help me
Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75
Try this:
<html: link href="action" parmaId="id" paramName="name" paramProperty="someprop" on click="myfun();"><img .../></html: link>
function myfun(){
if(confirm("Are you sure you want to delete?")){
return true;
return false;

Consider Paul's rocket mass heater.
subject: html:link
Similar Threads
Attempted a bean operation on a null object.
bean:write ???????
<html:link> problem
How to pass parameter to the next page with a html:link attribute
Buttons overlapping in Netscape