I want my page to be redirected to some other page on button click, whose action is mapped in struts.xml
How to achieve this?
I want my page to be redirected to some other page on button click, whose action is mapped in struts.xml
How to achieve this?
Look at below solution
<button><a htref="/someAction.action">Back</a></button>
So whenever you will press the button then action will call and then it does its work.
If link inside button will not work you can try onclick event of jquery or javascript
I like to use jquery
So the code will look like.
<button id="backButtonClick">Back</button>
$("#backButtonClick").click(function(e){
window.location.href="someAction.action";
});
Maybe this will help you.