aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:link" Watch "html:link" New topic
Author

html:link

MInu
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
MInu
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>
<script>
function myfun(){
if(confirm("Are you sure you want to delete?")){
return true;
}else{
return false;
}
}
</script>


SCJP5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:link