DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29198>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29198

pageEncoding and translation time including

           Summary: pageEncoding and translation time including
           Product: Tomcat 5
           Version: 5.0.24
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I’m facing the following problem after installing tomcat5 and after some 
searching i'm convinced that that's a bug (a small e.g)

<%@ page contentType="text/html;charset=windows-1253"%>

<jsp:include page = "file.jsp" />
HERE I've to define the contentType inside the file.jsp cause the inclusion 
occurs at request time (which is corect)

<%@ include file = "file2.jsp" %>
BUT HERE THE INCLUSION OCCURS AT TRANSLATION TIME SO (NORMALLY) I DON'T HAVE 
TO DEFINE THE contentType INSIDE FILE2.JSP (WRONG????)

SO HERE LAYS THE PROBLEM I HAVE TO DEFINE contentType ALSO IN THE SECOND CASE 
IF I WANT TO HAVE THE TEXT DISPLAYED PROPERLY, SOMETHING THAT I DON'T FIND 
RIGHT AND IT'S NOT TECHNICAL RIGHT(I THINK IS A MATTER OF HOW TOMCAT 
TRANSALTES AND COMPILES JSPs INTO SERVLETS). WHEN I WAS USING TOMCAT 4.x I 
DIDN'T HAVE THIS PROBLEM!

So i checked the generated srvlets at "work" directory! so for the same 
characters i get:
...
      out.write("ááááááááááá"); 
// LINE FROM:  <%@ include file = "file2.jsp" %> (not properly displayed but 
// included at translation time(???)
      out.write("Ξ±Ξ±Ξ±Ξ±Ξ±Ξ±Ξ±Ξ±Ξ±Ξ±Ξ±");
// text inside the index file...properly displayed
...

IT'S WRONG TO DEFINE THE CONTETNTYPE INSIDE ALL THE JSP FILES THAT ARE 
INCLUDED USING INCLUDING AT TRANSALATION TIME (<[EMAIL PROTECTED])

ps. all the other definitions, declarations, variables e.t.c are passed 
normally into files that are included at page translation time!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to