tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew J. Dick" <ajd...@echoworx.com>
Subject Re: TomCat, taglibs, and servlet mapping
Date Thu, 07 Sep 2000 15:25:20 GMT
Thanks for your quick response Craig.


> > 2.) In tomcat/webapp/foo, I created a WEB-INF directory.
>
> I am assuming that you really mean "tomcat/webapps" from here on, not "tomcat/webapp",
right?
>

Yep typo.  :)


>
> >
> > 3.) In tomcat/webapp/foo/WEB-INF I placed a web.xml file with the following:
> >     <web-app>
> >       <display-name>WebTier</display-name>
> >       <servlet>
> >         <servlet-name>webTierEntryPoint</servlet-name>
> >         <display-name>centralJsp</display-name>
> >         <jsp-file>Main.jsp</jsp-file>
> >
>

If I want to use the Main.jsp as the recepient of the mapped requests, <jsp-file> would
be correct would it
not?

>
> If you want to use a servlet instead of a JSP page, you should replace <jsp-file>
with a <servlet-class>
> element, to tell Tomcat what Servlet class to load.  Something like:
>
>             <servlet-class>com.mycompany.mypackage.MyServlet</servlet-class>
>

Andrew



Mime
View raw message