Say I'm having a jsp script that uses a model Model1 which provides myMethod. Now, model Model2 has it's own implementation of myMethod.
Model1 is for component 1, Model2 is for component 2. I want to include the jsp script in both components, without the need to duplicate it, the only difference being the model instantiated.
Any ideas?