Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is a common taglib the right solution ?  RSS feed

Grazia Lassner
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!