tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Ford" <df...@smart-soft.com>
Subject User-defined implicit objects
Date Sat, 02 Feb 2002 13:42:22 GMT
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message