Your
servlet controller should cooperate with a "model" class to obtain the value from the database. Is this the part you are havng trouble with?
Once obtained, the value can be placed on the request as an attribute (aka scoped variable). The controller forwards to the JSP page which uses the scoped variable to fill in the
value attribute of the form element.
It's not clear which part of this process is giving you problems.