Dear All, Trawled through the archive with no luck, but then I couldn't work out the best search terms for this question, so.......
I'm writing a shopping basket app with the usual requirements, and using tiles which has made things a lot less painful. However, I have this one problem that I can't work out a nice way to solve. On every page of the basket the contents of the basket are shown in a panel at the bottom of the page, and against each product is a 'delete' hyperlink. When the user clicks on this link the product should be removed and the page refreshed to show the modified info. My question is - how to code the logic to do the deletion of the product in such a way that the refreshing of the page is handled in a nice way ? I have the usual way of using an Action to populate the contexts to render the page, and then an Action to process the users response. When a product is removed I will have to delete the product & then redirect the user back to the Action to populate the page all over again. As far as I can see I have 2 options : 1. Have one Action that performs the product removal and that accepts a URL as a parameter that then redirects the user using that URL. I will have to place the necessary URL in the context so that when the page is rendered the redirect URL is set correctly for wherever the user is. Painful & not very nice - every populate Action will have to put the correct URL for itself into the context. 2. Have a seperate Action for every single delete page so that each instance knows where to send the user back to. Not much different from 1 & leads to a lot of Actions. Any ideas ? Am I missing the obvious ? For example, for 1 can I simply use the present request URL as the URL to redirect the user to to redraw the page ? Jon. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]