This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes how to clear request object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to clear request object" Watch "how to clear request object" New topic
Author

how to clear request object

karthi prabhu
Greenhorn

Joined: Apr 22, 2008
Posts: 6
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

Joined: Jan 10, 2002
Posts: 60800
    
  65

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
karthi prabhu
Greenhorn

Joined: Apr 22, 2008
Posts: 6
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to clear request object
 
Similar Threads
Clear Form Bean Values
Session Attribute works but why not Request Attribute
Forwarding a variable with request scope
exact date difference using Gregorian Calendar
question about page scope