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

  • javax.servlet.ServletException: Could not resolve view with name ...

    Hi all,

    I am new to spring. I hope you can help me with my problem. My configuration summary and the exception stack trace is below:

    tiles-defs.xml
    Code:
    <tiles-definitions>
      <definition name="baseLayout" template="/WEB-INF/tiles/baseLayout.jsp">
          <put-attribute name="title"  value="Template"/>
          <put-attribute name="header" value="/header.do"/>
          <put-attribute name="menu"   value="/jsp/menu.jsp"/>
          <put-attribute name="body"   value="/WEB-INF/tiles/body.jsp"/>
          <put-attribute name="footer"   value="/jsp/footer.jsp"/>
      </definition>
     ....... 
        <definition name="subMerchantManagement" extends="baseLayout">
          <put-attribute name="title"  value="Management"/>
          <put-attribute name="body"   value="/jsp/subMerchantManagement.jsp"/>      
      </definition>
    </tiles-definitions>
    views.properties
    Code:
    ...
    subMerchantManagement.(class)=org.springframework.web.servlet.view.JstlView
    subMerchantManagement.url = subMerchantManagement
    Controller
    Code:
    @Controller
    public class SubMerchantManagementBackingController {
    	@RequestMapping("/subMerchantManagement.dop")
    	public ModelAndView handleRequest(HttpServletRequest request,
    			HttpServletResponse response) throws Exception {
    				return new ModelAndView("subMerchantManagement");
    	}
    }
    Exception
    Code:
    javax.servlet.ServletException: Could not resolve view with name 'subMerchantManagement' in servlet with name 'mpPortal'
    	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1166)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    	at xxx.servlet.filter.MPPortalAuthenticationFilter.doFilter(MPPortalAuthenticationFilter.java:55)
Working...
X