tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Milkowski" <>
Subject service() method called Twice when using creating response with MIME type application/x-shockwave-flash
Date Wed, 18 Dec 2002 18:03:52 GMT
Using Apache Tomcat/4.1.12 deployment, following sample code in the servlet
used to demonstrate this behavior

public void service (HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {

	final BufferedOutputStream bufferedOutputStream = new
BufferedOutputStream(response.getOutputStream(), 2048);



	schart.encodeAsSWF(bufferedOutputStream);  // (schart here is a carting
package that encodes swf file into the OutputStream)

	response.setHeader("Expires", "-1");
	response.setHeader("nPragma", "no-cache");



in the above service method gets called twice, before rendering browser
output with the Flash MIME content!

Did anyone here had a similar experience? (maybe not necessarily with a
application/x-shockwave-flash) where service
method is called twice before completing response..

Any suggestions/solutions greatly appreciated!

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message