hi,
<script type="text/javascript" language="javascript">
dojo.event.topic.subscribe("/request", function(data, type, request) {
//cancel request
request.cancel= true;
});
</script>
<s:url
id="ajaxTest"
value="/AjaxTest.action" />
<s:submit
type="submit"
theme="ajax"
value="submit"
notifyTopics="/request"
href="%{ajaxTest}"/>
the above code uses struts 2 ajax theme submit and url .
i am new to struts2 .i find it difficult to understand the purpose of notifytopics and publishtopics .can anyone give a brief explanation of these attributes.
thank you.
Regards
Ram