I'm just beginning to try and use the JasperReportsPdfView. I've searched the forum for any examples or other info regarding this and haven't found anything. So, I have a few questions about it.
I'm trying to use a JasperReportsPdfView in a simple controller as seen below :
It's not clear to me how JasperReportsPdfView is used.Code:public class FirstReportController implements Controller { public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String stringArray[] = {"oranges", "apples", "grapes"}; List l = Arrays.asList(stringArray); HashMap model = new HashMap(); model.put("nameList",l); // how do you associate a report design xml file to the view? // or how do you associate a report design object to the view? return new ModelAndView(new JasperReportsPdfView(),"model", model); } }
How is the report design object (or xml file) associated with the view?
Are there any examples of using JasperReportsPdfView?
Again, I tried finding other forum threads but wasn't able to find the answer to my questions. Please direct me to any thread that would be helpful. I'm very new to jasper and fairly new to spring so any help is greatly appreciated.


Reply With Quote