• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to clear request object

 
karthi prabhu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am facing a problem in jsp page.when i clicking refres button in the browser i cant able to clear the request object.please can any one help me.

thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by "clear the request object" but I assume that you are talking about the problem where an action will occur again if refresh is clicked.

Please read through this article paying special attention to the P-R-G (Post-Redirect-Get) pattern.
[ May 18, 2008: Message edited by: Bear Bibeault ]
 
karthi prabhu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my jsp i am having textbox and button, when i entered values in the textbox and click the button it goes to struts action class and
check for the validation for the textbox values, after that the status is set in request attribute and alert message is poulated in jsp.
This process is working fine but if i click the refresh button after completion of the process again the alert message is coming.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic