You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kransen, J." <j....@srn.minjus.nl> on 2004/05/17 12:31:44 UTC

[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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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

Posted by Jacob Weber <ja...@jacobweber.com>.
In article 
<B7...@r90dc01.reclassering.nl>,
 "Kransen, J." <j....@srn.minjus.nl> wrote:

> 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? 


I've found that if I don't increase the buffer size in all my JSPs, all 
sorts of strange things happen. You can do this in the "page" directive, 
and you can also specify the content type there:

<%@ page buffer="64kb" autoFlush="false"
contentType="text/xml; charset=UTF-8" %>


Jacob


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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

Posted by "Andrea M." <an...@fastwebnet.it>.
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:j.kransen@srn.minjus.nl] 
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org