JSTL custom tag

Viewed 11450

How would I write (just a template) for a custom tag with 2 attributes that lets me output a html fragment (a html table) using jstl tag logic, that can be called from my jsp.

Can this be done without writing a java class, which is what I have seen in all the examples.

What I'm trying to acheive is to externalise repeated JSTL logic in my JSPs into a custom tag then pass the dynamic values needed to the tag at run time using the attributes.

Thanks,

2 Answers
Related