Re: xhtml and Internet Explorer

2003-11-07 Thread Marius Scurtescu
I opened an enhancement request for this issue at: http://issues.apache.org/bugzilla/show_bug.cgi?id=24506 Cheers, Marius Marius Scurtescu wrote: Hi, Yes, I totally agree that this issue should be brought up with the JSP specification. I will look into that. Even if the suggestion is accepted it

Re: xhtml and Internet Explorer

2003-11-07 Thread Adam Hardy
On 11/07/2003 06:48 PM Marius Scurtescu wrote: I opened an enhancement request for this issue at: http://issues.apache.org/bugzilla/show_bug.cgi?id=24506 Well formulated description! - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: xhtml and Internet Explorer

2003-11-04 Thread Rodrigo Ruiz
Well, not necessarily unreadable, just different ;-) I usually play with the tag delimiters to allow some readability. For example, my JSPs usually begin with something like: [EMAIL PROTECTED] contentType=... import=... import=... errorPage=... %%! // class code %% //

Re: xhtml and Internet Explorer

2003-11-03 Thread Marius Scurtescu
Hi, Yes, I totally agree that this issue should be brought up with the JSP specification. I will look into that. Even if the suggestion is accepted it will be quite a while until a specification will deal with this issue and then even longer until there is going to be a Tomcat implementation

Re: xhtml and Internet Explorer

2003-10-31 Thread Rodrigo Ruiz
Marius, I think such a feature request should not be addressed to Tomcat, but to the JSP specification itself. Remember that Tomcat is being used as the reference implementation of servlet/JSP technologies, and so it should stick to the specification. Basically, as I see it, your request means

Re: xhtml and Internet Explorer

2003-10-30 Thread Adam Hardy
On 10/30/2003 12:24 AM Marius Scurtescu wrote: Hi, I am using Tomcat 4.0.5 with JBoss 3.0.3 under Win2K and I am trying to generate XHTML pages with JSP. Everything is fine with Mozilla, but IE keeps showing the pages as raw XML. I know that this issue came up before on this list, but the

Re: xhtml and Internet Explorer

2003-10-30 Thread Carlos Pereira
That's because IE ignores the Content-Type header and just looks at the first few bytes of the file to decide how to display it. What a POS. Anyway... (Christopher Schultz) IE works like this: in the first call to a web page, it checks the Content-Type and displays the web page accordingly.

Re: xhtml and Internet Explorer

2003-10-30 Thread Jon Wingfield
LiveHTTPHeaders is a very cool plug-in for Mozilla. It captures HTTP request/response headers. It's like having a RequestDumperValve in your browser ;) http://livehttpheaders.mozdev.org/ Adam Hardy wrote: On 10/30/2003 12:24 AM Marius Scurtescu wrote: Hi, I am using Tomcat 4.0.5 with JBoss

(OT) LiveHTTPHeaders (was Re: xhtml and Internet Explorer)

2003-10-30 Thread Christopher Schultz
Jon, LiveHTTPHeaders is a very cool plug-in for Mozilla. It captures HTTP request/response headers. It's like having a RequestDumperValve in your browser ;) http://livehttpheaders.mozdev.org/ Okay, this is one of the coolest (and simple) tools I've ever seen. Thanks for pointing it out to us!

Re: xhtml and Internet Explorer

2003-10-30 Thread Marius Scurtescu
Thanks for all the replies. I did solve the mystery. IE is indeed a POS. It looks like it completely ignores the Content-Type headers and it just scans the beginning of the file. The JSPs I was struggling with are using lots of JSP directives (tag lib and page), includes and tiles. The result was

Re: xhtml and Internet Explorer

2003-10-30 Thread Jon Wingfield
Put all the tag and page directives on one line. Looks horrible in the source but if it works... The alternative is to write a filter which wraps the response and strips off the empty lines at the beginning as they are written to the outputstream. We've implemented this and it works quite

Re: xhtml and Internet Explorer

2003-10-30 Thread Christopher Schultz
Marius, Thanks for all the replies. I did solve the mystery. IE is indeed a POS. I told you :) IE seems to be scanning for the html tag (don't ask why) and if it does not find it soon enough then it gives up and treats the file as raw XML. Pretty smart. Now this is sort of a show stopper for me,

Re: xhtml and Internet Explorer

2003-10-30 Thread Jason Viers
Marius Scurtescu wrote: Thanks for all the replies. I did solve the mystery. IE is indeed a POS. It looks like it completely ignores the Content-Type headers and it just scans the beginning of the file. You know what's great about that? It's not a bug, it's a feature.

Re: xhtml and Internet Explorer

2003-10-30 Thread Marius Scurtescu
I will consider implementing a filter to remove the empty lines before the html tag. For now I eliminated most of the empty lines by changing: [EMAIL PROTECTED] import=... % [EMAIL PROTECTED] language=Java % jsp:include page=foo.jsp / jsp:include page=bar.jsp / jsp:include page=baz.jsp / to:

Re: xhtml and Internet Explorer

2003-10-30 Thread Adam Hardy
On 10/30/2003 10:08 PM Marius Scurtescu wrote: I will consider implementing a filter to remove the empty lines before the html tag. For now I eliminated most of the empty lines by changing: [EMAIL PROTECTED] import=... % [EMAIL PROTECTED] language=Java % jsp:include page=foo.jsp / jsp:include

Re: xhtml and Internet Explorer

2003-10-30 Thread Marius Scurtescu
JSP is a templating language which is using a meta language: the JSP constructs. The new line is in the JSP indeed, but is it part of the meta language or part of the literal output? I would argue that these new lines are part of the meta language and that they should not be output. You put them

Re: xhtml and Internet Explorer

2003-10-29 Thread Christopher Schultz
Marius, I am using Tomcat 4.0.5 with JBoss 3.0.3 under Win2K and I am trying to generate XHTML pages with JSP. Everything is fine with Mozilla, but IE keeps showing the pages as raw XML. That's because IE ignores the Content-Type header and just looks at the first few bytes of the file to decide