• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Uploading Files

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!java programmers,
When i am trying to upload file to a server (Javawebserver)with some other form data the file gets uploaded into my webserver.but when i m trying to get the other form fields using the getParameter() method it returns "null" as the value,though i am typing some text in the textfields.Can any body please solve this problem.thanks in advance. you can mail me to : mailtoamjath@yahoo.com
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is already a class at www.servlets.com
Download the Oreilly package
There is a java file MultipartRequest.java in that package
complie the file
The MultpartRequest has three parameters
1. HttpServletRequest Objext
2. The path wheer U want to upload the file
3. The max. size of the file
I hope this might help to solve youe problem
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Please let me know where is the "Uploader" file.
I am not getting it from anywhere
Please its urgent. Thanks in advance.
Rajesh
 
reply
    Bookmark Topic Watch Topic
  • New Topic