Announcement Announcement Module
Collapse
No announcement yet.
Jasper report handler error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jasper report handler error

    Hai user

    I am getting the following problem when using the jasper report

    No adapter for handler [org.springframework.web.servlet.view.jasperreports .JasperReportsMultiFormat

    what does this mean.

    Thanks
    anieshuk

  • #2
    Can you post your configuration? It looks like you are trying to map a URL to a View class rather than a Controller.

    Rob

    Comment


    • #3
      Hai

      Here is mycode
      Code:
      <bean id="springreport" class="org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView">
      		
      		<property name="url"><value>/WEB-INF/reports/springreport.jasper</value></property>
      	
      	</bean>
      
      <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
      
              <property name="mappings">  
      
      		<props>          
      			<prop key="/ExportBooking.htm">exportbookingcontroller</prop>
      			<prop key="/SpringReport.pdf">springreport</prop>
      						
      		</props>    
      
      	</property>
      	
      	</bean>
      Thanks

      Comment


      • #4
        As I suspected - you are mapping the URL to the view and not to a Controller - your URLs must be mapped to Controller implementation.

        Check out the JasperReports sample that is available in CVS for full details on how this should work.

        Rob

        Comment

        Working...
        X