Spring NestedServletException: Request processing failed exception is tiles CannotRenderException: ServletException including path

女生的网名这么多〃 提交于 2019-12-09 03:15:30

The problem is with your header.jsp page, I think you have some tiles attribute on that page. Try removing those and it will resolve your problem

ysramkumar

By using the Order property for viewresolvers it can be solved..

In your controller, if the return value is userHome, spring goes to tiles configuration. Otherwise it gives an exception, because, Spring first looks for pages under org.springframework.web.servlet.view.InternalResourceViewResolver in your configuration. If it is not found, it throws an Exception. So define property for both view Resolvers and for tiles resolver gives min value than other resolver.

So, spring first looking in tiles resolver.

for tiles resolver:

 <property name="order" value="0"/>;

for org.springframework.web.servlet.view.InternalResourceViewResolver

 <property name="order" value="1"/>;

in header.jsp. This line have the problem with your Tiles attribute, debug this and check for the page included into your tiles.xml

What about reading the actual exception:

JasperException: /WEB-INF/jsp/layout/user/header.jsp (line: 21, column: 20) Attribute attribute invalid for tag insertAttribute according to TLD

You have <tiles:inserAttribute attribute="..."> in header.jsp.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!