Sure. The include action (not directive) can reference any active resource in your web app.
But.... that's not a great way to do things in a JSP. A custom action (tag) would be much better suited.
What I do in cases like these is to factor out the common processing into a separat class that can be used either from a servlet or from a custom tag in a JSP without having to repeat any code. [ September 29, 2006: Message edited by: Bear Bibeault ]