Retrieve form data and populate template.
use java 1.7