try {
String file = (String) request.getParameter("file");
java.io.FileInputStream is = new java.io.FileInputStream(new java.io.File(file));
jatools.engine.ReportJob job = new jatools.engine.ReportJob(is);
response.setContentType("text/html;charset=UTF-8");
java.io.PrintWriter out_ = response.getWriter();
jatools.io.ResourceOutputFactory ff = null;
ff.createOutput(); //这个怎么弄呢
job.printAsDHTML(ff, out_);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}