> I have a list in my jsp .For each item in the list I
> have a submit button through which user can remove an
> item in list. When user clicks on remove link I submit
> the form to my action class .Action  class  removes
> selected  item from the collection and then sends him
> back to the same page . After the page is loaded  if
> user clicks on refresh for some reason  the same
> action is repeated again  ie one more item is deleted
> from list .How can I avoid this?
> thanks & regards
> 

You need to redirect from the action that handled the delete back to your view. 
 A redirect will refresh your browser URL.  To do this simply specify the 
redirect attribute on your actions forward or global forward. 

Gary  


> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to