Hi,
I have a page in which the code is as below:
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:url id="delete" action="delete" >
<s:param name="proj.id" value="id" />
</s:url>
<s:a href="%{delete}" onclick="return confirm('Are you sure?');" theme="ajax" notifyTopics="selected_Project" formId="projectForm">Delete</s:a>
Now the issue over here is,
when i click on the delete button i get a window asking permission for "ok" or "cancel" but even if i click on cancel it executes the action, that is delete.
The same thing is working when out in the code:
<s:url id="delete" action="deleteCreated">
<s:param name="proj.id" value="proj.id" />
<s:param name="proj.type" value="proj.type"/>
</s:url>
<s:submit href="%{delete}" action="deleteCreated" value="Delete" cssClass="butStnd" />
I need help
Please advice exactly what code should be putin to get this working.
Regards,
Anish