-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark,
On 1/20/2011 5:24 PM, Mark Thomas wrote: > On 20/01/2011 22:10, Christopher Schultz wrote: >> All, >> >> I'm working on a patch for allowing multipart parsing when a servlet >> doesn't have the @MultipartConfig annotation but I'm having trouble >> testing the case where the servlet *does* have the annotation. > > And the winner is... > >> 2. Tomcat doesn't scan for @MultipartConfig when programmatically >> registering servlets (does it?) > > at least not when using the embedded interface like that it doesn't. > > You need to do something like: > > Wrapper w = Tomcat.addServlet(...) > w.setsetMultipartConfigElement(...) Thanks, but I'm still not getting the part I expect. :( I'm starting to dig down into the code for FileUploadBase and friends but maybe you can help me short-circuit a bit: does getParts only return multipart/form-data parts that are actually file uploads? The javadoc doesn't say anything except that all parts are available via the getParts method. I happen, for the sake of simplicity, to be using a non-file multipart part. Could that be confusing things? Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk04w/gACgkQ9CaO5/Lv0PBJZACdECTLQmcjKcOL75YPsd/O3HuO rWUAnjHs5V4lHH9ITiYsMN6BEHlzv0Ze =EEKt -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org