At 08:14 AM 12/10/01 +0200, you wrote:
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
What text format are your .sum files using? Sounds like it may be UTF8.
Try this:
/**
* Returns the String contents of a UTF8 file.
*
* This method throws any fileIO errors.
*
* @param sFileName Full file path.
* @return String The contents of the file as a
requires the MIME type to be
registered while the other does not?
Thanks,
--jeff
- Original Message -
From: Kusel, Jonathan J [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, December 09, 2001 10:14 PM
Subject: RE: Unable to include *.sum files (Again)
Hi all
: Monday, December 10, 2001 1:21 PM
Subject: RE: Unable to include *.sum files (Again)
What text format are your .sum files using? Sounds like it may be UTF8.
Try this:
/**
* Returns the String contents of a UTF8 file.
*
* This method throws any fileIO errors.
*
* @param
- Original Message -
From: August Detlefsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 10, 2001 1:21 PM
Subject: RE: Unable to include *.sum files (Again)
What text format are your .sum files using? Sounds like it may be
UTF8.
Try
[mailto:[EMAIL PROTECTED]]
Sent: 11 December 2001 03:45
To: Tomcat Users List
Subject: Re: Unable to include *.sum files (Again)
Yes, it is absolutely going too far, but from my experience the include
directive has been quirky from the start (no matter what platform).
Hence, I have utility methods
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
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
Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, December 08, 2001 10:12 AM
Subject: Re: Unable to include *.sum files (Again)
At 08:22 PM 12/7/01 -0800, you wrote:
Yeah, see my last post. Since JSP output is written
on it.
Thanks,
--jeff
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, December 08, 2001 10:12 AM
Subject: Re: Unable to include *.sum files (Again)
At 08:22 PM 12/7/01 -0800, you wrote:
Yeah, see my last
At 02:51 PM 12/8/01 -0800, you wrote:
I don't think the spec is that detailed -- I mean, it doesn't come out and
say the page attribute of jsp:include has to follow the requirements of
the JspWriter. So, I don't know the answer to that.
Remember though, we're talking about included files -- by
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
At 03:53 PM 12/8/01 -0800, you wrote:
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
: Unable to include *.sum files (Again)
At 02:51 PM 12/8/01 -0800, you wrote:
I don't think the spec is that detailed -- I mean, it doesn't come out
and
say the page attribute of jsp:include has to follow the requirements of
the JspWriter. So, I don't know the answer to that.
Remember
or not is ultimately up to the
tomcat dev team.
Thanks,
--jeff
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, December 08, 2001 4:27 PM
Subject: Re: Unable to include *.sum files (Again)
At 03:53 PM 12/8/01 -0800, you
At 06:10 PM 12/8/01 -0800, you wrote:
I agree that there are workarounds -- there are always workarounds -- but
Tomcat is the RI, so this is the place where we're supposed to figure this
stuff out.
I guess my argument is that Tomcat is being more restrictive than the spec
requires it to be.
Hi all,
I've mailed the follwoing to the tomcat users group but nobody has responded
yet so I took the liberty of posting it again.
Here's the message:
I'm trying to include normal text files with .sum extensions using the
jsp:include directive:
I am totally guessing, but maybe you have to define a MIME type for
.sum files in your web.xml (and perhaps also where Apache configures
MIME types?)?
HTH,
-August
--- Kusel, Jonathan J [EMAIL PROTECTED] wrote:
Hi all,
I've mailed the follwoing to the tomcat users group but nobody has
PROTECTED]
Sent: Friday, December 07, 2001 12:40 PM
Subject: Re: Unable to include *.sum files (Again)
I am totally guessing, but maybe you have to define a MIME type for
.sum files in your web.xml (and perhaps also where Apache configures
MIME types?)?
HTH,
-August
--- Kusel, Jonathan J
At 01:31 PM 12/7/01 -0800, you wrote:
Nope. I tried it with *.doc files, too, and it still doesn't work. *.doc is
defined in web.xml.
Besides, it doesn't really make sense for MIME types to affect included
files, does it?
--jeff
I may be out to lunch here, Jeff, but it seems to me that it
-
From: August Detlefsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 07, 2001 12:40 PM
Subject: Re: Unable to include *.sum files (Again)
I am totally guessing, but maybe you have to define a MIME type for
.sum files in your web.xml (and perhaps also
- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 07, 2001 1:37 PM
Subject: Re: Unable to include *.sum files (Again)
At 01:31 PM 12/7/01 -0800, you wrote:
Nope. I tried it with *.doc files, too
-
From: August Detlefsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 07, 2001 2:16 PM
Subject: Re: Unable to include *.sum files (Again)
It might, if somewhere in the code of the jsp:include tag it
specifies to only include a file if it is of a relevant mime type
At 02:21 PM 12/7/01 -0800, you wrote:
Hi Micael,
Let's make sure we're talking about the same thing. If I include a file
like:
jsp:include page=./testTxt.sum flush=true /
Why does it matter what the file extension of the included file is? Isn't
the container just supposed to open the file
]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 07, 2001 7:40 PM
Subject: Re: Unable to include *.sum files (Again)
At 02:21 PM 12/7/01 -0800, you wrote:
Hi Micael,
Let's make sure we're talking about the same thing. If I include a file
like:
jsp:include page=./testTxt.sum
25 matches
Mail list logo