The following are the steps to create the basic application:
- Create ReadMyBooks_JSR_Validation as a dynamic web application.
- Add all the required jars that we added in the earlier application.
- Along with these jars, also add hibernate-validator-5.0.1.final.jar, classmate-0.5.4.jar, jboss-logging-3.1.0.GA.jar, and validation-api-1.1.0.final.jar.
- Copy the com.packt.ch06.beans and com.packt.ch06.controllers packages along with their content.
- Copy index.jsp and searchByAuthor.jsp in WebContent.
- Add DispatcherServlet mapping in the web.xml file.
- Copy books-servlet.xml in WEB-INF.
- Copy images in the WebContent and jsps folder in WEB-INF, along with its content.