I assume you mean you want to know how to do it using JSF, not JSP.
You save it to the database the same way you'd save any data from a Java bean to the database. Either using some kind of JPA, ODBC, etc. Once the user enters a value in your view, the backing bean's member variable holds that value. It's just a simple matter of calling some functionality to store it.