Custom tag with the logic in JSP (interprets JSPs with the passed parameters)
- by Romario
I want to create a custom jsp tag. I want this tag to take a jsp file as a parameter, and in this jsp I want to write the whole logic of the tag.
Let's say I want to pass a collection to a tag and then I would write code in jsp to iterate the collection and display it in .
Why I want to do it - I really hate having out.print() in my code.
Is something like this feasible? I remember doing something similar a while ago, I just forgot the details and my search doesn't seem to find relevant info - a link to a good implementation of the would be nice.