This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to get rid of action.do?additional_info
 
jQuery in Action, 3rd edition