Hello Liam, I've inserted into the web.xml file these lines: <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> Tiparire.class is not part of any package. Tomcat starts ok, but, when i'm trying to access the location "servlet/Tiparire.pdf", it says: "The requested resource (/servlet/Tiparire.pdf) is not available" Where is the problem ?
Alex. Friday, June 21, 2002, 11:56:32 AM, you wrote: LM> You might need to declare the servlet from within a servlet element like LM> this as well: LM> |<servlet-mapping> LM> <servlet-name>Tiparire</servlet-name> LM> <url-pattern>Tiparire.pdf</url-pattern> LM> </servlet-mapping> LM> <servlet> LM> <servlet-name>Tiparire</servlet-name> LM> <servlet-class>Tiparire</servlet-class> LM> </servlet> LM> | LM> servlet-class is actually the fully qualified class name (with package LM> name etc), just in case it's part of a package. LM> Liam Morley LM> 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]>