Announcement Announcement Module
Collapse
No announcement yet.
Spring Tiles View CannotRenderException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Tiles View CannotRenderException

    Here is my Error
    Code:
    org.apache.tiles.impl.CannotRenderException: JSPException including path '/WEB-INF/jsp/login.jsp'.
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:692)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)
    	at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:124)
    	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
    	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
    	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    I used spring+hibernate with jetty server in my project
    in my login page i used Spring form tags to enter data

    here is some sort of codes
    Code:
    		<form:form action="/login" commandName="user"  method="POST" >
                            <td >
    			<p >
    				<form:input path="userName" maxlength=255 size=14 value="" />
    			</p></td>
    here is my tiles config file
    Code:
    <tiles-definitions>
    	<definition name="base.definition"
    		template="/WEB-INF/tiles/layout.jsp">
    		<put-attribute name="title" value="" />
    		<put-attribute name="header" value="/WEB-INF/tiles/header.jsp" />
    		<put-attribute name="menu" value="/WEB-INF/tiles/menu.jsp" />
    		<put-attribute name="body" value="" />
    		<put-attribute name="right" value="/WEB-INF/tiles/right.jsp" />
    		<put-attribute name="footer" value="/WEB-INF/tiles/footer.jsp" />
    	</definition>
    	<definition name="login" extends="base.definition">
    		<put-attribute name="title" value="Login Manager" />
    		<put-attribute name="body" value="/WEB-INF/jsp/login.jsp" />
    	</definition>
    Here is my application Servlet
    Code:
    	<!-- TILES -->
    		<bean id="viewResolver"
    		class="org.springframework.web.servlet.view.UrlBasedViewResolver">
    		<property name="viewClass">
    			<value>
    				org.springframework.web.servlet.view.tiles2.TilesView
    			</value>
    		</property>
    	</bean>
    	<bean id="tilesConfigurer"
    		class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
    		<property name="definitions">
    			<list>
    				<value>/WEB-INF/tiles.xml</value>
    			</list>
    		</property>
    	</bean>
    Last edited by priyanka_hdp; Sep 10th, 2011, 12:25 AM.
Working...
X