This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I was puzzled for a while as to why Tomcat does not seem to parse the query string in in the PUT data of the doPut method on my servlet. The effect of this is that it doesn't populate parameterMap in doPut. I found the answer on Stack Overflow:
My question now is, once I retrieve the PUT data into a string, how can I manually parse the query arguments into name-value pairs? It would be fairly easy to write this code myself, but this seems like such an easy, obvious thing to be able to do, I don't want to duplicate work that has likely already been done. This method is almost certainly to be found inside of Tomcat, but it may not be publicly exposed, and I can't seem to find it.