I am using struts in my projects. I have an idea to create a reusable component (May be tag or plugin, not sure) which can be used on different pages within same website or it can be imported in new website (projects) later. Like I want to show poll on each page of site based upon the current page. The idea is it should work independently (with using some properties files for db settings etc.) like validation or saving poll results in DB and show result after submission etc.
Now my concern/question is what should I use, custom tag/Plugin or what?
I need step by step instructions for the same, if custom tag then steps for creating custom tag or if plugin then steps for creating plugin and how can we import the same in other projects. Please provide the references if available :).
Thanks Krishan Babbar