I would like to augment JSP's list of implicit objects (request, out, etc.)
with one of my own. I currently know of one way to do this. It requires me
to add a taglib directive and custom tag to the top of every page, which
seems more hassle than it's worth. I was wondering if there's a way to do
this without adding all the junk to the top of every page.

So, instead of this:

<%@ taglib uri=".." prefix="me" %>
<me:defineObjects />
<%
myImplicitObject.foo();
%>

I would like this:

<%
myImplicitObject.foo();
%>

Q1: Is there a standard way to do this? (I'm guessing no)
Q2: Is there a Tomcat-specific way to do this?

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to