Hello, I have a jsp (foo.jsp) that displays information about a certain foo. I have defined a LoadFooAction, that prepares the foo object and the SubmitFooAction, that is called when I want to change the appearance of foo in foo.jsp [suppose that foo is a list of bars and that I want to change the order of bars (by name, by date etc)].
In struts-config.xml I have defined the following: <action path="/loadFoo" type="LoadFooAction" name="FooForm"> <forward name="success" path="/foo.jsp"/> </action> <action path="/submitFoo" type="SubmitFoo" name="FooForm"> <forward name="reload" path="/loadFoo.do" redirect="true"/> </action> In order to identify which foo to load, I have added a parameter in loadFoo, called id, ie http://my.foo.site/loadFoo.do&id=23 The problem is that when I press submit in foo.jsp, the execute method in SubmitFooAction redirects the browser to http://my.foo.site/loadFoo.do, loosing the id parameter from the url. I can store either foo or "id=23" to session and retrieve them from there when the id parameter is not present, but what happens when the session expires and the user presses refresh or if the user decides to bookmark the page? I end up with a loadFoo.do without any information about which foo to display. Has any of you dealt with this problem before? The only thing that I can think of is to redirect the user to a different (perhaps error) page when no info is available, but I would really like to be able to do something better than that. Thanks in advance, Antonis PS. I know it's long, but it's 4:30 in the morning (EEST)... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]