Results 1 to 4 of 4

Thread: Jasper report handler error

  1. #1
    Join Date
    Jul 2005
    Location
    COIMBATORE-INDIA
    Posts
    110

    Default 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
    Have a Nice day

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

    Default

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

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

    Co-Author - Pro Spring

  3. #3
    Join Date
    Jul 2005
    Location
    COIMBATORE-INDIA
    Posts
    110

    Default

    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
    Have a Nice day

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

    Default

    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
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Similar Threads

  1. ERROR: Context initialization failed
    By makhlo in forum Architecture
    Replies: 8
    Last Post: Jul 11th, 2008, 01:41 AM
  2. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  3. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  4. Replies: 4
    Last Post: Nov 5th, 2004, 03:59 AM
  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
  •