commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie Bisotti" <jbiso...@gmail.com>
Subject [FileUpload] Does ServletFileUpload have to be an instance variable?
Date Thu, 19 Jul 2007 18:47:52 GMT
I've looked at the examples, and it looks like they are all creating the
following instance variables inside the Servlet's doPost(...):


...
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload( new DiskFileItemFactory() );
...


Do they have to be created on each request (i.e. be instance variables)?
Or, could I have 'private static final' members that get reused?

Thank in advance.

-- 
Jamie Bisotti

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message