0 Replies Latest reply on Jul 24, 2008 12:12 PM by Thierry Robin

    Error with handling static resources under WebSphere

    Thierry Robin Newbie

      hi

      it seems we have the same problem with ajax4jsf-filter cache than strut2 decribed here : https://issues.apache.org/struts/browse/WW-1526

      I tried the same fix : flush explicitly before sending response.

      in org.ajax4jsf.webapp.CacheContent class

       public void send(HttpServletResponse response) throws IOException {
       if (filledOutputStream) {
       OutputStream out = response.getOutputStream();
       if (content != null) {
       out.write(content);
       } else {
       this.outputStream.writeTo(out);
       }
       out.flush();
       // out.close();
       } else if (filledOutputWriter) {
       Writer out = response.getWriter();
       if (null != writerContent) {
       out.write(writerContent);
       } else {
       stringOutputWriter.writeTo(out);
       }
       out.flush();
       // out.close();
       }
       }
      


      and it works fine !

      is there any reason not to flush ? performance issue ?
      is it possible to integrate it in an future version for a better websphere compatibility ?

      Thanks by advance