Announcement Announcement Module
Collapse
No announcement yet.
jasper view dynamic report name Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment

        Working...
        X