ServletModule and @MultipartConfig

165 views
Skip to first unread message

Григорий Орлов

unread,
Jun 18, 2013, 6:29:31 AM6/18/13
to google...@googlegroups.com
Hi all!

I use @MultiPartConfig annotation from Servlet 3 API in my code for file uploading. It is very comfortably.
But when I start to migrate to Guice ServletModule this not work. There is no data in request.getParameterMap() nor getParts().
And I don't know how to add servlet params from docs to guice instead of annotation.

What can I do for set up @MultiPartConfig and ServletModule?

Message has been deleted

dasta...@lbl.gov

unread,
Dec 16, 2013, 3:52:43 PM12/16/13
to google...@googlegroups.com
I got it to work, by adding allowCasualMultipartParsing="true", to the web project's context.xml "Context" element. Hope this helps.
Reply all
Reply to author
Forward
0 new messages