Custom tag with the logic in JSP (interprets JSPs with the passed parameters)
Posted
by Romario
on Stack Overflow
See other posts from Stack Overflow
or by Romario
Published on 2010-04-02T22:01:46Z
Indexed on
2010/04/02
22:03 UTC
Read the original article
Hit count: 258
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.
© Stack Overflow or respective owner