Examples
There are several examples in the Hdiv GitHub site showing how to apply Hdiv to different target technologies. These are the steps to follow (download, installation and configuration) for each sample application:
Spring MVC¶
hdiv-spring-mvc-showcase is the sample application that shows the integration of Spring Mvc and Hdiv. Follow the steps below in order to test the application:
git clone git://github.com/hdiv/hdiv-spring-mvc-showcase.git
cd hdiv-spring-mvc-showcase
mvn package
mvn tomcat:run
Spring MVC and Ajax¶
spring-mvc-showcase is a fork of the Spring MVC showcase application that shows the integration of Spring Mvc and Hdiv in an application which uses simple Ajax interaction. Follow the steps below in order to test the application:
git clone git://github.com/hdiv/spring-mvc-showcase.git
cd spring-mvc-showcase
mvn package
mvn tomcat7:run
Spring MVC and Thymeleaf¶
thymeleafexamples-petclinic is the sample application that shows the integration of Spring Mvc, Thymeleaf and Hdiv. Follow these steps below in order to test the application:
git clone git://github.com/hdiv/thymeleafexamples-petclinic.git
cd thymeleafexamples-petclinic
mvn package
mvn tomcat7:run
Grails¶
hdiv-grails-showcase is the reference application that shows the integration of Grails and Hdiv. Follow the steps below in order to test the application:
git clone git://github.com/hdiv/hdiv-spring-mvc-showcase.git
cd hdiv-spring-mvc-showcase
mvn package
mvn tomcat:run
Struts 1¶
hdiv-struts-example is the reference application that shows the integration of Struts 1.3.8 and Hdiv.
git clone git://github.com/hdiv/hdiv-struts-examples.git
cd hdiv-struts-examples
mvn package
mvn tomcat:run
JSF¶
hdiv-jsf-example is the sample application for JSF. Follow the steps below in order to test the application:
git clone git://github.com/hdiv/hdiv-jsf-example.git
cd hdiv-jsf-example
mvn package
mvn tomcat:run
Struts 2¶
A reference application for Struts 2 and Hdiv integration is included within Hdiv 2.0.4 examples. To test the application follow these steps:
cd hdiv-struts2-example
mvn package
mvn tomcat:run