Hi All,
My requirement is when a text field loss focus i need to send its content to an action. Action will validate its value against a schema.
If it is a valid input then sends 1 as a replay else 0.
I want to call action through jquery. In
struts by default if we submit a form with invalid data then error message will be displayed in red color text above the text field.
I want to get the same effect when i validate using jquery as i said above. When i get response 0 from action to jquery function then i need to display error message at the bottom of the text field. I am using struts2jquery plugin.
Need advice on how to do this in a proper way.
Thanks
Peter