It would seem checking if request.getParts() is not empty is enough to determine the
servlet version. One other issue was that servlet 2.5 cannot recognize the
multipart/form-data encoding so all necessary parameters have to be put in the URL instead
of being part of the FormData we're sending.
Posted by forums
Original post:
https://community.jboss.org/message/874760#874760