Hello,
we are developing a content management where our client can upload and download contents.
The client wants to keep track the no. of times a file is accessed.
We wrote a
servlet that intercepts the request.
increase the access count by one and then
this.getServletConfig().getServletContext().getRequestDispatcher("Uploads/"+((Integer)session.getAttribute("company_no")).toString()+"/"+fileName).forward(request,response);
Here we have a weird problem. When the file is accessed on port 9080 it works fine.
It also works when the file is accessed on the server browser using localhost in url(Without port 9080).
But otherwise I get an error
com.ibm.servlet.engine.srt.WriteBeyondContentLengthException.
Any one has already faced this problem ??
Thanks in advance for your help.
Regards,
Bhiku.