File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes No in built support for multi part request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "No in built support for multi part request" Watch "No in built support for multi part request" New topic
Author

No in built support for multi part request

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Why is there no direct support for multipart request in Servlet API?


Groovy
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You might want to ask the folks who wrote the specs.
servletapi-feedback@eng.sun.com


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Thanks Ben.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Be sure to post back if they respond.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Pradip-

I completely agree.

Multi-part requests are one of those annoying areas in JSP writing you try to avoid at all costs, and end up having to add 3rd party jars to get the job done. Why there's no transparent support I haven't got a clue.


My Blog: Down Home Country Coding with Scott Selikoff
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Size is the key. Parts can be several gigabytes, so a standard support has to store them somewhere then give you a streamed access. The space has to be utilized after usage. If I were an author of the speac, I wouldn't deal with this complexity.


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Originally posted by Ben Souther:
Be sure to post back if they respond.


I dont think they read the mail or reply. I remember having sent an email (and it was not a stupid question)to EJB team 1.5 years ago and havent got any reply for that. In case they reply for the Servlet question I will send post the reply here.

Thanks.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

I got the reply from Sun.


This is something that the Servlet EG has discussed and we plan to
address this in the next servlet specification.

-Greg Murray

Servlet Specification Lead


Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14338
    
  22

In the meantime, you can use the Apache Jakarta Commons FileUpload library to handle multipart requests.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No in built support for multi part request