[very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Kransen, J.
Hello, I generate an XML file from within a JSP in Tomcat. Especially after
16384 bytes the contents are really interesting. Unfortunately, Tomcat
disagrees and truncates it. It can't be coincidence that this is 16k
precisely, so I hoped to find a configuration item set to 16k (in fact I
hoped not to have a limit at all), but I can't find one. There are also no
stack traces or any errors/warnings, it just gets truncated and that's it.
It can't be the browser, because it happens with IE6 and Opera 7.23.

By the way, do I have to (can I) set a content type text/xml in JSP? 

Regards, Jeroen


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



RE: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Adolfo Miguelez
I did have similar experiences parsing files by myself using SAX parsing. 
Xerces and other parsers chop files in blocks. 16k is the default size for 
xerces, or at least it was.

Hander code must be aware of that, in the events handling, and hold strings 
from one block to the other if one tag is broken in between two blocks.

Otherwise, results can be unpredictable.
I guess, just a guess, could happen something similar in Tomcat parsing but 
a deeper investigation must be developed. Anyway, that you say could have 
meaning.

Regards,
Adolfo.
From: Kransen, J. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: [very OT] 16 kb limit in XML from Tomcat?
Date: Mon, 17 May 2004 12:31:44 +0200
Hello, I generate an XML file from within a JSP in Tomcat. Especially after
16384 bytes the contents are really interesting. Unfortunately, Tomcat
disagrees and truncates it. It can't be coincidence that this is 16k
precisely, so I hoped to find a configuration item set to 16k (in fact I
hoped not to have a limit at all), but I can't find one. There are also no
stack traces or any errors/warnings, it just gets truncated and that's it.
It can't be the browser, because it happens with IE6 and Opera 7.23.
By the way, do I have to (can I) set a content type text/xml in JSP?
Regards, Jeroen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


R: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Andrea M.
Hmm
I don't know about this 16k limit, but AFAIK you can set any kind of content
type in your jsp.
JSPs are ultimately servlets (once translated), so  you have no limit in
content types

e.g. I used to set text/xml for creating dynamic JNLP files with jsps


-Messaggio originale-
Da: Kransen, J. [mailto:[EMAIL PROTECTED] 
Inviato: lunedì 17 maggio 2004 12.32
A: 'Struts Users Mailing List'
Oggetto: [very OT] 16 kb limit in XML from Tomcat?

Hello, I generate an XML file from within a JSP in Tomcat. Especially after
16384 bytes the contents are really interesting. Unfortunately, Tomcat
disagrees and truncates it. It can't be coincidence that this is 16k
precisely, so I hoped to find a configuration item set to 16k (in fact I
hoped not to have a limit at all), but I can't find one. There are also no
stack traces or any errors/warnings, it just gets truncated and that's it.
It can't be the browser, because it happens with IE6 and Opera 7.23.

By the way, do I have to (can I) set a content type text/xml in JSP? 

Regards, Jeroen


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


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