pass the request to the o'reilly stuff and request the objects from there and you can also get a "new" request object from there servlets which behaves the way you want..
Mvgr, Martin > -----Original Message----- > From: Henry [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 22, 2001 11:47 PM > To: [EMAIL PROTECTED] > Subject: multipart form data > > > In a FORM data that uses POST method, I need to upload a file > as well as other string data. > > according to oreily, forms should be ENCTYPE="multipart/form-data", > however, when this thing is added, all the inputs in the form > can not be reached by > request.getParameter(...) > > how can i fix it? > > > below is the html: > > <FORM ENCTYPE="multipart/form-data" > method="POST" action="manager"> > <INPUT TYPE="text" NAME="sid"> > ... > > below is the servlet: > public void service(HttpServletRequest request,HttpServletResponse > response) > throws ServletException, IOException > { > Enumeration paramNames = request.getParameterNames(); > while(paramNames.hasMoreElements()) { > String paramName = (String)paramNames.nextElement(); > >