my dog learned polymorphism*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jakarta fileupload - suggestions to improve my code