What servlet engine are you using?

I suspect that the default file serving servlet in your container is changing the 
page's mime type to be appropriate for the file extention of the requested file. 

I don't believe that it is supposed to do that on an "include" request though. 

-----Original Message-----
From: Steffen Fiedler [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 2:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems with <jsp:include>


Hi,
thanks for this tip, but i have to decide at runtime which side should be
inclouded.

Am Mittwoch, 2. Juli 2003 23:13 schrieben Sie:
>     I would assume that the @include page directive would work better,
> given that the content is static.  The jsp:include is for including
> dynamic output from another object in your response.
>
> Steffen Fiedler wrote:
> >Hi,
> >
> >I have two problems with <jsp:inlude> - tag:
> >
> >1) I can only include files with extension .html or .jsp, when i try to
> >include other files (e.g. .txt) , the generated HTML-code just ends
> >at the point where the included text should appear, without any
> >error-message. When i rename file.txt to file.html its included
> >correctly. I found this behaviour nowhere described.
> >
> >2) The include-tag seems to destroy the correct character-encoding.
> >E.g. german Umlaute are shown as ?. When i request the included
> >file directly its shown correct, on the including jsp-page too.
> >
> >Thanks for any help,
> >Steffen
> >
> >==========================================================================
> >= To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> >
> >Some relevant archives, FAQs and Forums on JSPs can be found at:
> >
> > http://java.sun.com/products/jsp
> > http://archives.java.sun.com/jsp-interest.html
> > http://forums.java.sun.com
> > http://www.jspinsider.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to