You might need to declare the servlet from within a servlet element like this as well:
|<servlet-mapping> <servlet-name>Tiparire</servlet-name> <url-pattern>Tiparire.pdf</url-pattern> </servlet-mapping> <servlet> <servlet-name>Tiparire</servlet-name> <servlet-class>Tiparire</servlet-class> </servlet> | servlet-class is actually the fully qualified class name (with package name etc), just in case it's part of a package. Liam Morley Alex wrote: >Hello Ralph, > > I've modified web.xml from ROOT\WEB-INF, and i've added > something like this: > <servlet-mapping> > <servlet-name>Tiparire</servlet-name> > <url-pattern>Tiparire.pdf</url-pattern> > </servlet-mapping> > My servlet is called Tiparire.class and is located into > ROOT\WEB-INF\classes > But, when i start tomcat, it says: > ERROR reading java.io.ByteArrayInputStream@4e280c > At Line 11 /web-app/servlet-mapping/ > What is wrong ? > > Alex. > >Friday, June 21, 2002, 11:01:10 AM, you wrote: > >RE> It's possible to configure tomcat to let you request >RE> /servlet/Tiparire/text.pdf and to get /servlet/Tiparire >RE> executed. I haven't tried by now to do something like >RE> that so can't give you much more help. > >RE> Maybe something like this should do the trick: > >RE> <servlet-mapping> >RE> <servlet-name>Tiparire</servlet-name> >RE> <url-pattern>*.pdf</url-pattern> >RE> </servlet-mapping> > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>