I have a
jsp page which looks like -
the top portion of the page has 3 textboxes and a submit button to add an entity.
the rest of the page displays a list of all the entities in the system.
when i load the jsp and add a new entity, the new entity shows up on the list. when i try to add a new entity second time, the entity does get added into the database, but does not show up in the list.
In the action class, i make a request to the dao and print all the values from the list, returned by the dao. the newly added entities are present in the list. i dont understand, why it does not show up in the jsp page.
any ideas. i am wondering if the data is being cached, so, in the jsp page i have also set the following parameters:
Has this to do anything with
Struts and Hibernate which i use in my application? The same thing happens, when i edit. when i click on edit button, it takes the user to a different page, i edit the details and click on save button. the control returns back to the list page, but the changes are not shown, although the changes are saved to the db. how do i prevent cache. i am putting my entire list in a request object, before doing an action forward to the jsp page.