View Full Version : Jasper report handler error
anieshuk
Sep 1st, 2005, 04:12 AM
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
robh
Sep 7th, 2005, 07:44 AM
Can you post your configuration? It looks like you are trying to map a URL to a View class rather than a Controller.
Rob
anieshuk
Sep 8th, 2005, 12:09 AM
Hai
Here is mycode
<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.SimpleUrlH andlerMapping">
<property name="mappings">
<props>
<prop key="/ExportBooking.htm">exportbookingcontroller</prop>
<prop key="/SpringReport.pdf">springreport</prop>
</props>
</property>
</bean>
Thanks
robh
Sep 8th, 2005, 09:45 AM
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
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.