0 Replies Latest reply on Oct 27, 2003 10:18 AM by raphead

    Cannot pass JspWriter to defined method

    raphead

      Hi,

      I want to make some outputs to the 'out-Stream'
      in a class which I've defined in my JSP.
      After I've figured out, that there is no implicit out-object in
      all <%! enclosed stuff, I just passed the out-Object from the place where I call the method as a parameter.
      BUT Jboss/Tomcat runs into serious problems with this:

      ------------------------------------------------------------------------
      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: -1 in the jsp file: null

      Generated servlet error:
      [javac] Compiling 1 source file
      [javac] C:\JAVA_APPS\jboss\server\default\work\MainEngine\localhost\myweb\index_jsp.java:71: unreported exception java.io.IOException; must be caught or declared to be thrown
      [javac] out.flush();
      [javac] ^
      [javac] 1 error
      --------------------------------------------------------

      Looks bad to me... what can I do?

      Thanks