Results 1 to 3 of 3

Thread: questions regarding JasperReportsPdfView

  1. #1
    Join Date
    Sep 2004
    Posts
    11

    Default questions regarding JasperReportsPdfView

    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 :

    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);
        }
    }
    It's not clear to me how JasperReportsPdfView is used.

    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.

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    The mechanism for configuring report files for the JasperReports views is covered in section 13.8 of the reference manual that comes with the 1.1.3 release.

    Rob

  3. #3
    Join Date
    Sep 2004
    Posts
    11

    Default

    Yes, thank you. That is exactly what I was looking for and enough to keep me moving along.

    From now on, I'll be sure to look in the spring-reference.pdf of the release that I'm using.

Similar Threads

  1. Replies: 2
    Last Post: Jun 20th, 2005, 02:15 AM
  2. Important questions on binding
    By shaby775 in forum Swing
    Replies: 6
    Last Post: Mar 15th, 2005, 05:35 AM
  3. Replies: 5
    Last Post: Mar 14th, 2005, 10:18 AM
  4. newbe questions
    By jboring in forum Swing
    Replies: 2
    Last Post: Dec 21st, 2004, 11:28 AM
  5. Questions about FormModel.isDirty()
    By cyboc in forum Swing
    Replies: 10
    Last Post: Oct 22nd, 2004, 01:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •