This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
Reg: Getting data after save using Spring+Hibernate
posted 8 years ago
I am new to Spring and Hibernate, I am facing the issue in retrieving data after saving.
Scenario: -> I have a Listing Page where I show list of rows. And also a facility to add records when user click on Add button. -> When user clicks on Add button, user navigates to Add Form page where user feeds data and clicks on Save button. -> When save operation is done succesfuly, user will be navigated to Listing Page.
But, in the Listing Page, the recently added record is not showed, when i digged into the issue, I found that object is null. I am calling Listing action as soon as Save action is done.
But when I navigate front and back, at that time listing data is dispalyed correctly.