code snippet:
593 // Send the reply.
594 //
595 response.setContentLength(reply.length);
596 response.setContentType(contentType);
597 response.getOutputStream().write(reply);
598 response.setStatus(HttpServletResponse.SC_OK); <-- Is this a
right way to set response after writing into output stream ?
I should have been like this
595 response.setContentLength(reply.length);
596 response.setContentType(contentType);
597 response.setStatus(HttpServletResponse.SC_OK);
598 response.getOutputStream().write(reply);
There is no meaning in setting status after writing the data into the
response
Let me know if this is a right way to do this ?
however, as far as i can tell the jee/jsp/servlet spec has been loose
on this and has not formalised a contract. therefore, as an implementor
you may discover that an issue may crop up based on the application
server/container running the application.
maybe those folks that have deployed gwt-rpc to following servers can
speak up:
- websphere
- weblogic
- jboss
- jetty
- etc
rgds ash
http://www.gworks.com.au/
self help sources:
1. http://javaongems.org/ -> http://code.google.com/p/javaongems/
2. http://code.google.com/p/gems-gwt-user/
3. http://code.google.com/p/juls/
GWT developement team leads/memebers PLEASE TAKE A NOTE OF THIS PROBLEM
This is fixed in 1.1.0.
Scott