// System.out.println("DO GET !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
PrintWriter
out = response.getWriter();
HttpSession
session = request.getSession();
FileUploadListener
listener = null;
StringBuffer
buffy = new StringBuffer();
long
bytesRead = 0,
contentLength = 0;
// Make sure the session has started
if (session == null)
{
return;
}
else if (session != null)
{
// Check to see if we've created the listener object yet
listener = (FileUploadListener)session.getAttribute(ATTR_NAME);
if (listener == null) {
return;
} else {
// Get the meta information
bytesRead = listener.getBytesRead();
contentLength = listener.getContentLength();
}
}
response.setContentType("text/xml");