To upload a file you need to use a multi-part form and the "file" input element to create the upload controls on your web page.
Then, write a
servlet to post this form to that can parse the resulting multi-part request. The servlet can create an instance of your bean and pass the file data to it.
Search these forums for terms like "file upload", "multipart form" and "smart upload" to find lots of topics that discuss this very issue.
hth,
bear
P.S. Further questions on this topic might be better suited to the servlets forum.