• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

on clicking refresh the jsp the value from a bean are duplicated

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i m new to this forum it looks really good

i am getting the value from a bean and displaying in a jsp page

Serial Name Of
Number Location The Builder Locality


2 chennai SABUILD METROCOLONY

8 chennai restat pallikaranai



when i click refresh the values are being duplicated as below please help me to solve the issue. i dont want the duplicate.

Serial Name Of
Number Location The Builder Locality


2 chennai SABUILD METROCOLONY

8 chennai restat pallikaranai

2 chennai SABUILD METROCOLONY

8 chennai restat pallikaranai
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like P-R-G pattern.Can you please post your JSP?
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Surya Kant wrote:Looks like P-R-G pattern.

Huh?

Looks like PRG?? This statement makes no sense. He should be applying PRG pattern to solve this problem. It's in fact easy: send a redirect after processing of the POST, but before sending of any response. Check the JSP FAQ here for more details.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic