File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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;

I agree. Here's the link:
subject: html:link
jQuery in Action, 3rd edition