You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Claassen <ma...@donnell.com> on 2004/11/23 19:44:06 UTC

Accessing MIME-TYPES

I am writing a JSF application that needs to be able to view archived
documents.  When a request hits my bean I do the work to extract the desired
document, but I need to return the correct MIME-TYPE in the response.  I
know what type (PDF, TEXT) of document it is when I access it, but I don't
know the MIME-TYPE.  However, the information to do the mapping is all
happily in the main web.xml file in Tomcat's conf directory.  Is there any
way I can access this information so I can make the mime mapping myself?

Thanks,
Mark

Confidentiality Notice:  OCIESERVICE
---------------------------------------------------------------------
The contents of this e-mail message and any attachments are intended 
solely for the addressee(s) named in this message. This communication 
is intended to be and to remain confidential.  If you are not the 
intended recipient of this message, or if this message has been 
addressed to you in error, please immediately alert the sender by 
reply e-mail and then delete this message and its attachments. Do not 
deliver, distribute, copy, disclose the contents or take any action 
in reliance upon the information contained in the communication or 
any attachments. 
---------------------
Mark Claassen
Donnell Systems, Inc.
300 S. St. Louis Blvd. Ste. 203 
South Bend, IN 46617
E-mail: mailto:mark.claassen@donnell.com
Voice: (574)232-3784
Fax: (574)232-4014
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org