In my web app, all reports can be saved as PDF, Excel, Ppt, DOC, HTML, XML. So, the user will see a select box like tht e one below
Hence, in my java code, I will have to choose like this
IT seems to me rather boring ...
All of my reports will offer the same options. I do not want to repeat the code above over and over again. How could I refactor it for a more elegant solution ? Is maybe a common taglib (that would define a "report saving options" tag) the way to go ? Please advise.