Jsp is not only way in
java to write server side applications.
It's rather presentation techology.
So... (Assuming you are not familiar with model1, model2(
Struts) etc)
1. create html (perhaps using jsp) form with <input type="file" ..
2. learn how to use "commons-fileuploads".
3. create
servlet that stores image from request into db.
4. you can forward to jsp presentation layer after.