Re[2]: AW: AW: set content type to text/pdf

2002-06-21 Thread Alex

Hello Liam,

  I've inserted into the web.xml file these lines:
 servlet-mapping
servlet-nameTiparire/servlet-name
url-patternTiparire.pdf/url-pattern
 /servlet-mapping
 servlet
servlet-nameTiparire/servlet-name
servlet-classTiparire/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-nameTiparire/servlet-name
LM   url-patternTiparire.pdf/url-pattern
LM /servlet-mapping
LM servlet
LM   servlet-nameTiparire/servlet-name
LM   servlet-classTiparire/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-nameTiparire/servlet-name
url-patternTiparire.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-nameTiparire/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]




Re: Re[2]: AW: AW: set content type to text/pdf

2002-06-21 Thread Constantin Wolber

Freitag, 21. Juni 2002 11:10 schrieb Alex:
   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:

Hi,

cause your using a servlet Mapping and your servlet is in the ROOT 
Context you have to leave the servlet in servlet/Tiparire.pdf away

You should reach your servlet by connecting to this URL

http://yourserver:8080/Tiparire.pdf

Cu

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]