I have a common scenario. I have a list page. There are three buttons. View, edit and delete. Each record has a radio button which selects id of that record.
$(".radioBtn input").click(function() {
$('#messageId').val(this.value);
});
also I am keeping the id as hidden field to set it in the form object
<form:form id="messageForm" commandName="message">
<form:hidden path="messageId" id="messageId" />
</form:form>
When I click on any radio, it is set in form object. Now different action needs to be invoked on clicking of view or edit or delete button. I can't user ajax. I need to call them by plain javascript so that i can render the result in different page returned by view of ModelAndView.
Can anyone help?