I am facing some problem. Help or suggestion in this regards is highly appreciated.
I have to add row to a table on click of a button(click of button i call b()).
below is the code i am using
In the servlet i am making the thread to sleep for 1000 milli seconds.
Now when i click on the button 3 times, three rows gets created.
For the first two rows its shows js error(wen the servlet sends the response) and for the last row with index=2 it works properly and gives alert also. Data is not populated for the 1st two rows but for the 3rd row it comes up fine.
I am using struts2 framework in my application.
Can you please suggest how to handle this situation and why this is happening.