Unable to instantiate an object of XSSFWorkbook in Java servlet -
i'm trying work xssfworkbook in web application. ran sample application xssfworkbook plain java program (with public static void main(string args[])
) - runs fine - excel sheet generated.
however, when run same piece of code in java based web application - instance of xssfworkbook not instantiated. no exception thrown either!
please help!
the below code works fine me public void trackeruploadlistener(fileuploadevent event) throws exception { uploadedfile tracker = event.getuploadedfile(); xssfworkbook wb = null; inputstream stream = tracker.getinputstream(); wb = new xssfworkbook(stream); } here, listener called xhtml page.
Comments
Post a Comment