@gnishant it looks like your solution is exactly what I am looking for, but forgive if this sounds like a very basic question, but what you mean by "requestResponseFactory is injected using annotations"? I tried to copy the code you had into my .jsp file, and I get an exception. Am I supposed to do ...