This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Java in General and the fly likes jakarta fileupload - suggestions to improve my code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "jakarta fileupload - suggestions to improve my code" Watch "jakarta fileupload - suggestions to improve my code" New topic
Author

jakarta fileupload - suggestions to improve my code

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Basically I've a servlet which receives a multipart request. With that it should create a new object which should save the file and store the path to be later added on a database.

My problem, or doubt is about the constructor's object
this's the code:

1. Is another way to get the field's value without going trough an Iterator?
2. How would you improve it?

Thanks in advance.


trying to decode a woman mind....
 
Don't get me started about those stupid light bulbs.
 
subject: jakarta fileupload - suggestions to improve my code