tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anuj Agrawal <>
Subject RE: invoking a JSP or servlet
Date Wed, 11 Dec 2002 01:12:43 GMT
So the welcome file is a jsp that forwards to a servlet which in turn
forwards to another jsp?

Ok - in a web.xml (from Struts), i also saw:


I guess i'd like to map ALL servlets (not just the ones for the action
servlet) to the .html pattern (i'm very sure there will be no static pages
in this web app, and even if there are, they can be .htm).  Is this
possible?  And is this a good thing?  (My clients insist on having a file
extension - they don't like doing, but
rather - yeah, i know.. :( .. )


> -----Original Message-----
> From: Karr, David []
> A common pattern is to have your welcome file be a jsp that does
> nothing but forward to your first "action".
> > -----Original Message-----
> > From: Anuj Agrawal []
> >
> > Is it accurate to say that we should never invoke a JSP file
> > directly?  It
> > should always be forwarded to from some servlet?
> >
> > What if my first page (say, index.jsp) of my web app has some db query
> > results being displayed, is the "right" way to make it so
> > that my first page
> > is a servlet and after doing all the db stuff, it forwards to
> > the index.jsp?
> >
> > If that's true, then is there a way to configure the web app
> > (guessing via
> > web.xml) so that the welcome file is a particular servlet?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message