Don't know for sure, but a guess would be that by the time the Struts action gets executed, the body has already been read in order to gather the request parameters.
I'd suggest using a raw servlet so that you have complete control.
Moving to the Struts forum for any further discussion.
It would help if we knew what you are trying to accomplish by reading the request in this way. If you're trying to upload a file, there's a much easier way to do it:
Originally posted by Merrill Higginson: It would help if we knew what you are trying to accomplish by reading the request in this way. If you're trying to upload a file, there's a much easier way to do it:
I'll try to explain better: I have this jsp page, and say it has a link to an action, when you click in the link I would like to print in the server console the code of the jsp it belongs to