This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Problem in Delete operation in Struts application

 
Jay Shukla
Ranch Hand
Posts: 214
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Redisplay the page with caching disabled.
 
Jay Shukla
Ranch Hand
Posts: 214
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic