• Post Reply Bookmark Topic Watch Topic
  • New Topic

When you refresh the page, still the Servlet action is calling  RSS feed

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I have an updated servet which will take the UI values and it compares the existing values, if it finds any difference, it goes DB call and update. If it doesn't find the difference, it goes to the same page and will display message "no updates".

fine so far, when I refresh the same page, it's calling the servlet and doing the same this before what it does and eventually displaying the "no updates" message.

I dont want to go for this logic, I want to display the existing values with out any messages. how to avoid this?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to display the existing values without any messages, then don't call a servlet which compares the existing values to something else and displays messages. Call a servlet which displays the existing values.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to employ the PRG pattern. See this article.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!