Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Problem in Delete operation in Struts application

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am creating a CRUD struts application. In this application in delete application.
When you delete a record, it should immediately removed from the database and remaining records should be displayed on the jsp.

But in this application when deletion happens for any record, that deletion does not taken into effect untill and unless you restart the application.

Below are the code for jsp where the records are being displayed and LogonData class with getUsers() and removeUser() frunctions.


userlist.jsp
=======




LogonData.java
==========




What is going wrong ? What changes needs to be done so when delete a record, it immediately taken into effect. (All records should be immediately displayed without the one deleted).

Thanks in Advance.


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Redisplay the page with caching disabled.
 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Thanks for reply.
Could you let me know how to disable caching?

Thanks in Advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search the web for disabling caching; there are like 3-4 headers to set.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic