I need to do the following:
Once user clicks on the button, it should trigger an action, once action is completed it should send the proper message to the jsp page to be shown to user, I am using the following code but do not have any idea how to complete it.
<sj:a id="Submit" href="%{ajaxText}" targets="div1">Add</sj:a>
<s:url id="ajaxText" value="/myAction.action"/>
It is very easy:
JSP:
Action class:
Configuration:
the message sould be shown.