<s:hidden name="bucket"/> <s:a href="javascript:delete('${Bucket}');">Delete</a>
<script> function delete(id) { if(confirm('sure ?')) { document.forms[0].bucket.value = id; document.forms[0].action = deletebucketaction.action; document.forms[0].submit(); } else { document.forms[0].bucket.value = id; document.forms[0].action = browsebucketaction.action; document.forms[0].submit(); } } </script> Sawan <[EMAIL PROTECTED]> 21/08/2007 09:41 Veuillez répondre à "Struts Users Mailing List" <user@struts.apache.org> A user@struts.apache.org cc Objet how to use confirmdialog box hello, i want to use confirm dialog box in my application, but i faces some problem. so please let me know how i can do my work " <s:url action= <s:param name="Bucket" value="%{Bucket}" /> </s:url>" onclick="confirm('sure to delete')" >Delete " i have done this , it will show confimdialog box and if i click on ok or cancel then deletebucket action is called. but my need is that if i click on OK then it have to call deletebucketaction & when i click on cancel then it have to call browsebucketaction. -- View this message in context: http://www.nabble.com/how-to-use-confirmdialog-box-tf4303548.html#a12249806 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]