Jan-Michael,

If you haven't started using filters yet, that's the way to go. You make a
class that implements javax.servlet.Filter interface. This should allow you to
do what you want, but may require a different approach.

Garrett



--- Jan-Michael Ong <[EMAIL PROTECTED]> wrote:
> Thank you for the quick response. Actually that's the problem. I don't want 
> to have to remember to always insert an include into the jsp file.
> 
> I'd like to modify Tomcat's behavior such that ANY jsp file (preferably in 
> a context) will get these lines added.
> 
> Good point though and I'll keep these in mind.
> 
> Any other suggestions?
> 
> Thanx
> 
> Jan-Michael
> 
> 
> At 03:41 PM 10/30/2002 -0800, [EMAIL PROTECTED] wrote:
> >If I understand your question correctly, why don't you
> >just use one of the include directives to insert that
> >into your file where you want it?
> >
> >Either:
> >
> ><%@ include file="relativeURL" %>
> >
> >-- OR --
> >
> ><jsp:include page="{relativeURL | <%= expression %>}"
> >    flush="true| false" >
> >    <jsp:param name="parameterName"
> >       value="{parameterValue | <%= expression %>}" />+
> ></jsp:include>
> >
> >Thanks.
> >
> >--- Jan-Michael Ong <[EMAIL PROTECTED]> wrote:
> > > Greetings Tomcat-Users Group,
> > >
> > > I tried to search on this topic on Google for a few
> > > days but was unable to
> > > come up with any useful leads.
> > >
> > > I was hoping if any of you would have any idea about
> > > the following:
> > >
> > > For each jsp page, I do the following
> > >
> > > <tag:custom_tag>
> > > do some work
> > > </tag:custom_tag>
> > > other work
> > >
> > > What I would prefer to do is have any jsp page be
> > > rewritten right before it
> > > gets turned into a .java program so that it includes
> > > these lines.
> > >
> > > I've looked at RequestInterceptors and
> > > ContextInterceptors and checked out
> > > the Java 3.2.4 source code ... and while I came up
> > > with some possible leads
> > > its been really hard to figure out if its the best
> > > way to do it or if there
> > > are better ways to accomplish what I'd like to do.
> > >
> > > I would appreciate any help that you can provide in
> > > advance. Thanks very much.
> > >
> > > Sincerely,
> > >
> > > Jan-Michael Ong
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:tomcat-user-help@;jakarta.apache.org>
> > >
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >HotJobs - Search new jobs daily now
> >http://hotjobs.yahoo.com/
> >
> >--
> >To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
> <mailto:tomcat-user-help@;jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> 


=====
http://dhtmlkitchen.com/
JSP | Servlets | DHTML 

Garrett Needs A Job

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to