aspose file tools*
The moose likes Struts and the fly likes How to get rid of action.do?additional_info Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to get rid of action.do?additional_info" Watch "How to get rid of action.do?additional_info" New topic
Author

How to get rid of action.do?additional_info

Ling Chung
Ranch Hand

Joined: Mar 29, 2004
Posts: 39
Hello all,

i am building a struts webapplication and would like to know if there is a way to get rid of the action.do?additional_info for instance when i add a product to my shoppingcart -> like www.website.com/addToCart.do?productId=2
afterwards when i keep refreshing it keeps performing this action. How can i make sure the text displayed in the title bar is "clean" and it doesn't perform an action twice when a user clicks the refresh button of his browser.

Thanks!!
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

This sounds like a job for thePRG Pattern!


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get rid of action.do?additional_info