Announcement Announcement Module
Collapse
No announcement yet.
Could not resolve view name Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not resolve view name

    HI with spring mvc 3.1 and spring webflow, I am not able to navigate to invoke a method from a jsp web page.

    The error is :

    21:43:46,331 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/HousewareAdmin-web].[Spring MVC Dispatcher Servlet]] (http--192.168.1.20-8080-3) Servlet.service() for servlet Spring MVC Dispatcher Servlet threw exception: javax.servlet.ServletException: Could not resolve view with name 'categories_image/categories_image_update' in servlet with name 'Spring MVC Dispatcher Servlet'

    Here is my controller code:

    Code:
    @RequestMapping(value = "/categories_image/categories_image_update", method = RequestMethod.GET)
        public String update(CategoryPageBean categoryPageBean, 
                        HttpSession session, Model model) {
    
               ...
                          
                      
    	return "categories_image/categories_image_update";
        }
    views.xml file:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE tiles-definitions PUBLIC
    	"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
    	"http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
    	
    <tiles-definitions>
    	
    	<definition name="categories/search" extends="categoryPageLayout">
    		<put-attribute name="body">
    			<definition template="/WEB-INF/categories/search.jsp">
    				<put-attribute name="searchForm" value="/WEB-INF/categories/searchForm.jsp" />
    				<put-attribute name="bookingsTable" value="/WEB-INF/categories/bookingsTable.jsp" />
    			</definition>
    		</put-attribute>
    	</definition>
    
            <definition name="supplierPage" extends="supplierEditPageLayout">
    		<put-attribute name="body" value="/WEB-INF/suppliers/supplierPage.jsp" />
    	</definition>
            
    	<definition name="categories/*" extends="supplierEditPageLayout">
    		<put-attribute name="body" value="/WEB-INF/categories/{1}.jsp" />
    	</definition>
         
            <definition name="categories_create/*" extends="supplierEditPageLayout">
    		<put-attribute name="body" value="/WEB-INF/categories/{1}.jsp" />
    	</definition>
    </tiles-definitions>
    Any suggestion is very appreciated.

    Thanks
    Sam
Working...
X