How do I write a custom tag to substitute and modify the functionality of jsp:useBean?

Serge Knystautas

The jsp:useBean action is something the JSP compiler handles and can't readily be changed. You could look at open source JSP compilers and tweak it to do your own behavior, but this would probably violate the spec in a major way, and you'd lose much of the value of use a standard (like JSPs) in the first place.