This is how I am doing a small site in java only when I add a product and click to list the datatable does not update, I do not know how and what I have to do so that every time the page is displayed update the Array.
Another thing that happens to me is that when I add a product the fields do not get clean.
Images (1 I added then went to list and as they see the carrot does not appear)
Insert
List