public void setOutputfile ( String outputfile ) { try { this . outputfile = ResourceUtil . toResourceExistingParent ( pageContext , outputfile ) ; pageContext . getConfig ( ) . getSecurityManager ( ) . checkFileLocation ( this . outputfile ) ; } catch ( PageException e ) { this . outputfile = pageContext . getConfig ( ) . getTempDirectory ( ) . getRealResource ( outputfile ) ; if ( ! this . outputfile . getParentResource ( ) . exists ( ) ) this . outputfile = null ; else if ( ! this . outputfile . isFile ( ) ) this . outputfile = null ; else if ( ! this . outputfile . exists ( ) ) { ResourceUtil . createFileEL ( this . outputfile , false ) ; // try { // this.outputfile.createNewFile(); /* * } catch (IOException e1) { this.outputfile=null; } */ } } }
set the value outputfile The file to which to direct the output of the program . If not specified the output is displayed on the page from which it was called .