2009/2/25 Paul Benedict <pbened...@apache.org>: > I had a servlet filter written that attached the entity per request, > but a double-click from the user showed the futility of that approach. > You can't have one entity attached to two sessions :-)
Uh sorry I did not read correctly this sentence. You are right, the same object is at risk of being attached twice, even with OSIV filter. Probably the best thing is to attach the object only when needed. The typical case is when you are constructing an object through various steps. So you: 1. load an object, with all the needed relations; 2. detach the object; 3. modify the objects in your pages; 4. when you need to save it: a. use "redirect after post" and tokens to avoid double submit; b. reattach the object; c. save. HTH Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org