Here's the scenario.
I have an struts app that works like this.
I type in a url: http://localhost/actions/OrderDetail.do?orderNo=1234
The action corresponding to this .do does the retrieval of db info for that order and saves in an OrderBean.
Struts then forwards me to OrderDetail.jsp. This OrderDetail.jsp outputs the info pertaining to that order.
That's what's done. Here's what I need.
In that jsp, I need to have a link called "ChangeOrderDetail" which takes me to a popup which allows me to change a couple of fields for that order.
When I submit that popup page, (let's call it ChangeOrderDetail.jsp) , I want the popup page to close and to be taken to ChangeOrderDetailAction, which would save the new data in db. I then want the original OrderDetail.jsp to be automatically refreshed (by invoking the url http://localhost/actions/OrderDetail.do?orderNo=1234
again) so it can get repopulated with the new data from the db.
How do I do that? Please provide the relevant code sample.
Thank you so much.