File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jakarta fileupload - suggestions to improve my code

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic