Results 1 to 4 of 4

Thread: jasper view dynamic report name

  1. #1
    Join Date
    Jul 2005
    Posts
    2

    Default jasper view dynamic report name

    Hi,

    I use spring 1.2.1
    jasperReport 0.68

    i'm new to spring i want to generate jasperreport dynamicaly.

    i want to use JasperReportsMultiFormatView
    the jasper report name is stored in a database table.

    So how do i pass the url (jasper file) and data to jasperreport with spring.

    in short which are the steps to generate a report.


    Is there an example which use japser with spring ?

    i'm trying yo convert my servlet which processes the data to jasperreport to spring because i want to convert my webapp to spring.



    Sergio

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

    Default

    Sergio,

    If you check out Spring from CVS you will see a jasper reports demo is available. It is not quite ready for inclusion in the main distribution (something I hope to fix for 1.3) but it does show all aspects of the configuration and code.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3
    Join Date
    Jul 2005
    Posts
    2

    Default

    Rob,

    I got it working with the samples off jasperdemo.

    Now the only thing remaining is that i don't want to use a views.properties file
    but i want to use always class
    org.springframework.web.servlet.view.jasperreports .JasperReportsMultiFormatView
    and i want to set the url within the program ad not by a propertie's file.

    How must i do this with spring ?

    Sergio

  4. #4
    Join Date
    Aug 2004
    Posts
    4

    Default

    Quote Originally Posted by sergioD
    but i want to use always class
    org.springframework.web.servlet.view.jasperreports .JasperReportsMultiFormatView
    and i want to set the url within the program ad not by a propertie's file.
    How must i do this with spring ?
    Sergio
    Inject the org.springframework.web.servlet.view.jasperreports .JasperReportsMultiFormatView to your controller, set the URL property and return it as your modelandview.

    [^_^]
    IPBS
    [^_^]
    IPBS

Similar Threads

  1. Replies: 28
    Last Post: Jun 14th, 2011, 01:48 PM
  2. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  3. Jasper report handler error
    By anieshuk in forum Web
    Replies: 3
    Last Post: Sep 8th, 2005, 08:45 AM
  4. Content Provider vs View Model
    By Martin Kersten in forum Swing
    Replies: 21
    Last Post: Mar 10th, 2005, 02:25 PM
  5. Replies: 2
    Last Post: Oct 3rd, 2004, 01:02 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
  •