Да, вы можете!
Следуйте инструкциям, чтобы узнать о JXL .
Чтобы создать рабочую книгу внутри сервлета:
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
// Specifying in the response headers that a file is gonna be returned
resp.setContentType("application/x-download");
// Specifying the name of the file
resq.setHeader("Content-Disposition", "attachment; filename=MyName.xls");
// Create the workbook with the output stream of the response
WritableWorkbook jxlWorkbook = Workbook.createWorkbook(resp.getOutputStream());
// Do your stuff
// ...
// Finally close the stream
resp.getOutputStream().close();
}