R
rjweytens
Hello,
I am in the process of developing a web app using Struts. I have a
situation where I am calling an action to add some information to a
database, and if the add is successful, the action will forward to
another action that brings up a confirmation page that shows the id #
of the record that was added along with the added information. When
the confirmation page comes up, the URL in the page is the URL for the
action that added the record to the database, not the URL for the
action that generated the confirmation page. Therefore, when the
refresh button is pressed, the action will is executed again and
another record is added to the database.
I've added the redirect="true" parameter to my actions, but that did
not change the URL. I have also read about using tokens, but it seems
to me that the URL should stay current with the page. Any
suggestions?
Thanks
I am in the process of developing a web app using Struts. I have a
situation where I am calling an action to add some information to a
database, and if the add is successful, the action will forward to
another action that brings up a confirmation page that shows the id #
of the record that was added along with the added information. When
the confirmation page comes up, the URL in the page is the URL for the
action that added the record to the database, not the URL for the
action that generated the confirmation page. Therefore, when the
refresh button is pressed, the action will is executed again and
another record is added to the database.
I've added the redirect="true" parameter to my actions, but that did
not change the URL. I have also read about using tokens, but it seems
to me that the URL should stay current with the page. Any
suggestions?
Thanks