After clicking the "Submit" button the Action class does the processing and calls the DAO to persist data in the DB.
An Ajax funtion is called which checks if the data submitted has changed status. The code is attached below
The ajax code is
Once the call return with the message being displayed in the jsp. I can't used any button "Submit" or "Reset".
I have a requirement whrer I need to reset the all fields one the processing
is completed for one trade.
The <bean:***> tags are Struts markup and must be evaluated on the server. Assigning them as innerHTML values on the client will not cause these tags to expand into their definitions.
I get the desired bean meassgae displayed .. but after that I want to be able to click on the reset button and have fields reset..but this is not happenning. Nothing happens on clicking on the buttons after the message has been displayed thru Ajax call. Before all this ther eset button works fine son I don't believe there is any problem with the reset button JS code