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
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]
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
%%
//
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
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
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
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.
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
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!
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
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
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,
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.
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:
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
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
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 solution suggested previously
(adding a page directive
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
Hi there,
anoyone know this one?
I have a jsp page written to the xhtml standard. It looks like this:
?xml version=1.0?
!--
- Author(s):
- Date:
- Copyright Notice:
- @(#)
- Description:
--
jsp:root
Bill,
many thanks: that worked perfectly.
Graham
MSIE has a bad habit of ignoring Content-Type, so I don't know that this
will work. However, what you want is:
jsp:directive.page contentType=text/html; charset=iso-8859-1 /
(of course, change the charset if you aren't using
MSIE has a bad habit of ignoring Content-Type, so I don't know that this
will work. However, what you want is:
jsp:directive.page contentType=text/html; charset=iso-8859-1 /
(of course, change the charset if you aren't using iso-latin-1).
[EMAIL PROTECTED] wrote in message
news:[EMAIL
21 matches
Mail list logo