In my application, a user can generate a file containing search results, which can later be emailed as an attachment. I'm wanting to give the user an option to preview the attachment before sending the email with a "Click here to preview attachment" kind of feature. The name of the file changes depending on the search that the user originally performed. I cannot figure out how to reference the file name. I've done a lot of searching, but I have not come up with anything. I've tried:
The attachmentFileName is a property of the form bean associated with this action, as shown below.
I hope this is clear. If not, let me know and I'll give another shot at explaining. Any help would be greatly appreciated!