开发者

Location of view.properties in my project spring mvc jasperreports

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜