So there are several parts to this task. I need to know which parts you're having problems with.
1) Upload a file (the only Struts-related problem)
2) Using Java to determine if a file exists
3) Writing information to a database
They're all different, they're all completely unrelated, and only item 1) is Struts-related.
See the
Struts 2 FAQ entry about uploading files and the
Struts 2 file upload page for item 1).
For the rest, I'd ask 2) in the
beginning Java forum. For 3) it depends on how you're accessing the database, but either the
JDBC forum, the
ORM forum, or the
Spring forum (or a different one if none of those cover what you're using).