AF
Home
Tag
Submit Notes
Ask Anything
Login
Subscribe Us
A
ny
F
orum
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
2. Registration is not compulsory, you can directly login via google or facebook
3. Our Experts are looking for yours ?.
Follow @anyforumin
java-spring: How to integrate the Spring MVC, Struts 2, Tiles, Hibernate With each other?
Could you plz explain me Integration of these frameworks with examples.
java x 211
spring x 24
Posted On :
2016-08-22 07:18:15.0
MOHAMMAD SALEEM BASHA
269
15
0
2
Answers
Don´t get confused. Spring is the framework of frameworks. Either you use struts as a front controller or spring MVC. Spring provides all UI tags, MVC controllers, Hibernate templates, etc. Yes tiles is something different and has different use. Only one thing you need to add in spring-servlet.xml file.
<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>
rest is same as spring MVC flow.
Posted On :
2016-08-22 22:34:50
Satisfied :
1 Yes
0 No
Rishi Kumar
523
1882
49150
Reply This Thread
3
Post Answer
Please Login First to Post Answer:
Login
Answer:
anyforum.in