Well . this is fairly a simple question. Lets say i have a registration form, some user has registered and i have the details in my database.
Now i can use the same form for letting the user edit his profile. I can prefill the textboxes by giving the following example
<input type="text" value="<%= some_userbean.getname() %>" />