i created a form and on post i want to save those values to the database and show the saved values on the page. i am new to spring mvc and hence i am not understanding w
Seems to be a problem in your form. At least, the inputs must be given the name attributes:
Cust_Id : Name : Age :
But since you are using Spring, it is preferable to use the Spring forms (and spring url's also):
Id: Name: Age:
Edit And you should initialize dao!
dao
@Autowired private CustomerDao dao;