I am trying to run a simple Hello world of struts2 to learn its usage with AJAX Jquery.
What I am trying to accomplish: There is a text box to enter name and a submit button saying sayHello. On clicking this button if name entered is Mark it should display Hello Mark using AJAX. Below is my code which gives desired output but displays html content twice.. Please let me know if my below approach is correct or wrong:
The code is working but the the problem is On entering name as Mark it is showing Hello Mark (which is correct) but along with this it is rendering the text boxes one more time.
here is my action class:
here is my JSP page where there is some mistake which renders HTML twice.
Also I was not sure whether to post this in Struts forum or JSP forum or CSS,AJAX,Jquery Javacript Forum.