Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: Problems with <jsp:include>

Eric Noriega

2003-07-02

Replies:

  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 listserv@(protected)".
>For digest: mailto listserv@(protected)".
>
>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 listserv@(protected)".
For digest: mailto listserv@(protected)".

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


©2008 junlu.com - Jax Systems, LLC, U.S.A.