Rizwan Merchant wrote:


Hi Manoj,
Thanks for the response.
This happens with both FF and IE.

I am not sure I understand your question "Also where are u persisting the order (session db ..where)that you change in the action that is not reflected in the forwarded page".

When I click on the cancel button, the page reloads but the column with the status text does change to "Canceled" as it is supposed to. If I query the mysql db on the command line I can see that the status has been changed (its just not reflected on the screen after the reload). When I hit "refresh" or navigate back to the page the status text changes. So basically the change is not reflected the first time after returning back from the cancel action.

Please help!

Thanks,
-Riz.



[EMAIL PROTECTED] wrote:

What browsers are you working on...
Try it on firefox as well
Also where are u persisting the order (session db ..where)that you change in the action that is not reflected in the forwarded page
Cheers

-----Original Message----- From: Rizwan Merchant [mailto:[EMAIL PROTECTED] Sent: Sat 10/06/2006 01:18 To: Struts Users Mailing List Cc: Subject: Page does not refresh after action

    Hi,
    I have a page with a bunch of orders, and each order has a "Cancel"
    button next to it and the status text of that order. When I cancel a
    particular order, the appropriate action is called, the order is
    canceled and the action then returns to the same page. I can see the
page being reloaded (thru the status bar on the browser), but the status text (which should now say "Canceled") for the order remains the same until I hit "Refresh" again (or come back to the page by navigating to it). Is it possible that the browser is caching the status text and how can I
    overcome this problem?
Thanks,
    -Riz.
---------------------------------------------------------------------
    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]


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


Riz,

You are, if I understand your response, persisting your orders in the db. To show the new status of an order, you are going to have to repeat your query. Either do this in your cancel action, since you appear to be going back to the jsp directly, or redirect back to the original query action and let it go to your jsp from there. You will need to persist you query parameters to do either of these. In our application, the way it is set up, we persist the query parameters in session scope and redirect back to the query action. We do this so that we can do updates and deletes on a list item and not duplicate the query in each of those actions.

Don't know if this is best practice, it is just the way we do it.

HTH,

Al


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

Reply via email to