Has anyone successfully used a filter to modify the original request?
I saw that the tutorial covered wrapping the response object to modify it,
but there wasn't any mention of doing something similar to the request.
Ideally, I'd like to look at the size of a request, and if the size is too
large, generate a new request to throw an error to the browser.
I assumed I could get it from javax.servlet.ServletRequest's
getContentLength method, ie:
...
public void doFilter(final ServletRequest request,final ServletResponse
response)
throws java.io.IOException, javax.servlet.ServletException
{
length = request.getContentLength();
...
but length is always 0 when I println to the console.
Using jdk 1.3, orion 1.4.0.
Any hints? Anyone else doing anything similar?
--
David S. Kenzik
[EMAIL PROTECTED] - http://kenzik.com
Original Music - http://mp3.com/text