Announcement Announcement Module
Collapse
No announcement yet.
Spring MVC project using Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MVC project using

    Hello everybody, I would like to ask you about configuring Spring MVC project with Tiles 2. I have reviewed some tutorial and examples but I stiil have a problem. I have analyzed this tutorial http://krams915.blogspot.com/2011/01...tegration.html

    In my Dispatcher Servlet I have this code:

    Code:
    <beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    		<beans:property name="prefix" value="/WEB-INF/views/" />
    		<beans:property name="suffix" value=".jsp" />
    		<beans:property name="order" value="1" />
    	</beans:bean>
    
    <beans:bean id="tilesviewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
     		<beans:property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" />
      		<beans:property name="order" value="0" />
     	</beans:bean>
    
    	<beans:bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
    		<beans:property name="definitions">
    			<beans:list>
    				<beans:value>/WEB-INF/tiles-definitions.xml</beans:value>
    			</beans:list>
    		</beans:property>
    	</beans:bean>
    Are there correct definitions? For jsp files is correct and this is still working. But for new defined tiles I am getting HTTP Status 404. How can I properly configure this in my Distpatcher Servlet?

    EDIT: Sorry, I haven't finished my thread title. It would be "Spring MVC project using Tiles".
Working...
X