• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

about multipart/form-data

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSP technology.when i am putting the enctype of the HTML form as MULTIPART/FORM-DATA i am not able to get the values of the other parameters via request.getParameter()I mean the request object is almost lost. can onyone tell me possible reasons and solution of how to get those values.

[ June 01, 2004: Message edited by: Johnson Abraham ]
[ June 01, 2004: Message edited by: Bear Bibeault ]
 
Marshal
Posts: 67446
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Automatic parsing of the request only happens when the request enctype is "url-encoded" (I forget the exact syntax, but it's the default of the form tag). With a multipart form, you need to parse the request yourself (or use a thrid party library to do so for you).

Search this, the Servlet, and perhaps the Tomcat forum for previous discussions on this topic.
 
Bear Bibeault
Marshal
Posts: 67446
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found it. The default enctype is "application/x-www-form-urlencoded".
 
Johnson Abraham
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestion i went through a API on www.orielly.com n accomplished the task.
 
    Bookmark Topic Watch Topic
  • New Topic