AF
HomeTagSubmit NotesAsk AnythingLoginSubscribe Us
AF
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 ?.



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 210
spring x 24
Posted On : 2016-08-22 07:18:15.0
profile MOHAMMAD SALEEM BASHA - anyforum.in MOHAMMAD SALEEM BASHA
266150
up-rate
2
down-rate

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
profile Rishi Kumar - anyforum.in Rishi Kumar
523188221600
Reply This Thread
up-rate
3
down-rate



Post Answer
Please Login First to Post Answer: Login login with facebook - anyforum.in