Is there any way in the fragment, to check and see if the @ taglib prefix is already in use and thus ignore the directive?
Oh geez, I don't think so. At least not that I am aware of.
In my own apps, I either use
jsp:include, where it has its own page context and so this isn't a problem, or allow a JSP 'fragment' -- since it is essentially a '#include' into a parent page -- to assume that the parent page has performed any necessary setup.
Wouldn't it be nice if it were smart enough to see that the declarations were the same and not complain unless there were conflicts?
bear