This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When I complete the form with a text and a pdf the result of the prints are:
¿How can be possible?. The parameter recovered with getAttribute works even when the form is multipart and it can't work in that way, and the parser of the commons upload returns everything null when parses the multipart data.
I hope some help, I'm stuck since yesterday :S. Thanks!
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read.
You can edit your post by using the button.
Joined: May 04, 2010
I've solved it!.
The code is ok. The reason of this strange behaviour is the Struts. I have a filter in the web.xml to redirect everything on my web application throught the Struts Dispatcher. Maybe because I'm uploading the file using a servlet instead an Struts action, the file can't be sent properly.