Hi all, Thanks for all the responses(including the debate) to this question! It made some real interesting reading material after the SHORT weekend! To get back to August's suggestion: we've tried it but our problem is that the file content is generated by a VB program and contains some funny characters e.g. "CPI" rather than "CPI". When we translate these to a string it either comes out as ?CPI? or as illustrated in the attached image(This is also how it displays in JBuilder).
Regarding the debate I tend to agree with Jeff. If you want to display the pure contents of a file you should be able to include the file using <jsp:include> without having to define a mime type. I mean what happens if you want to include a "code" example, for example a code snippet that illustrates how to code something in C,C++,Java etc. If you define the mime type it will try to translate it, which is not what we want in this case... You could define it as type text but now you need to maintain two mime types for one extension? Just doesn't sound right to me. The other thing that bothers me is the fact that it works for the <%@ include...%> directive but not for the <jsp:include.../> surely they should perform similar actions simply using a different syntax? Thanks again, Jonathan -----Original Message----- From: August Detlefsen [mailto:[EMAIL PROTECTED]] Sent: 09 December 2001 01:53 To: Tomcat Users List Subject: Re: Unable to include *.sum files (Again) If it does use PrintWriter to write the output, then it makes sense for it to only output text. See this from the PrintWriter javadoc: Print formatted representations of objects to a text-output stream. This class implements all of the print methods found in PrintStream. It does not contain methods for writing raw bytes, for which a program should use unencoded byte streams. If you want to include files of non-text types (or types that are text, but not included in your MIME types list), why not just write a utility method that opens a file, reads it and returns its contents as a String? -August --- Micael Padraig Og mac Grene <[EMAIL PROTECTED]> wrote: > At 08:22 PM 12/7/01 -0800, you wrote: > >Yeah, see my last post. Since JSP output is written with a > PrintWriter, the > >Catalina code is restricting it to only being able to output known > text/* > >MIME types. This just doesn't "feel" right to me. > > > >Thanks, > >--jeff > > Well, jeff, then it is not a "bug". At best it is a difference of > opinion. That makes all the sense in the world to me. If you want > to > bring in something other than the "known 'text/* MIME types," just > include > the proper code in your include? We have differing intuitions here. > I > think what Catalina is doing is proper and makes sense. But, at > worst for > you, it is an inconvenience. Right? > > -- micael > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
funnychar.bmp
Description: Windows bitmap
Disclaimer and Confidentiality Note. Everything in this e-mail and attachments relating to the official business of Standard Bank Investment Corporation(Stanbic) is proprietary to the company. It is confidential, legally privileged and protected by law. Stanbic does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Stanbic. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Stanbic can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
-- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
