I am working with a struts appication. I need to code for making a download option for xml file which would be created dynamically. While creating, the destination is not decided as its a web application, more users may try to download. This is should not create inconsistency.
All these two actions(creating xml file, download option/open xml file window) should be done on a single click.