wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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

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.

Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

This sounds like a job for thePRG Pattern!

A good workman is known by his tools.
It is sorta covered in the JavaRanch Style Guide.
subject: How to get rid of action.do?additional_info
Similar Threads
In a MVC design is it possible to automatically invoke a Command upon page load?
How do I pass data between Struts forms?
URL mapping problem: www.website.com/anyUser to bring up details of that specific user using post
Hibernate: one-to-one Different Composite Keys
html:link tag using chinese parameters