开发者

Location of view.properties in my project spring mvc jasperreports

开发者 https://www.devze.com 2022-12-26 23:22 出处:网络
I´m trying to generate reports with jasperreports, acording to documentation I need to configure the ResourceBundleViewResolver like this.

I´m trying to generate reports with jasperreports, acording to documentation I need to configure the ResourceBundleViewResolver like this.

<bean id="resourceBundleView" 
    class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
    <property name="basename" value="views"/>
</bean> 

And a file called view.properties, the problem is that I don´t know where to place it. Currently, I´m putting it in a folder called views and my file in it. But when I run my 开发者_如何学Ccontroller this error is´s been thrown

Problem accessing /dwrsimple/reportes/reporteVehiculos.html. Reason: Can't find bundle for base name views, locale en_GB

Hope some one can help me.


you have to keep your views.properties under WEB-INF/Classes folder


Thank you. i found that value="views" it's supposed to be the name of the file, so i renamed my view.properties to views.properties

0

精彩评论

暂无评论...
验证码 换一张
取 消