Hey!

John, I have experienced the same behavior with Lotus Domino Go Webserver
4.6.2.5.

I looked further in Jason Hunters MultipartRequest class and found:

He passes the Servlet Request in, does some parameter checking and
then reads the request.  He makes sure that the contentType is
multipart/form-data and proceeds to peel off the boundary string.

This is where the exception is thrown.  For some reason, that I don't
know, there is no boundary string in the content type.

I am using Netscape 4.05, Go, and Websphere 2.02 Advanced.

My HTML for looks like this:

<FORM ACTION="/servlet/UploadTest" METHOD="POST" ENCTYPE="multipart/form-data">
What is your name? <INPUT TYPE=TEXT NAME=submitter> <BR>
Which file do you want to upload? <INPUT TYPE=FILE NAME=file> <BR>
<INPUT TYPE=SUBMIT>
</FORM>

What I don't understand where the responsibility to construct the
content type lies?  The web browser, the webserver or the application container?

My guess is the web browser sees the multipart/form-data, sees the file and is
required to construct information to pass along to the webserver.  The webserver
sees
the action equals a servlet and just dutifully pass it along to the application
container.
Wrong?

How can I intercept what the web browser is sending to the webserver?  If I can
see
that then I can look for the boundary string.  If the browser sent it correctly,
then
the webserver is not handling it correctly.
No?

I looked at the RFC 1867 spec. at
http://info.internet.isi.edu:80/in-notes/rfc/files/rfc1867.txt

This is all that I can figure.

Someone please help.

Thank you.

Sans adieu,
Danny Rubis



"Alchin, John" wrote:

> I'm having a problem with file uploads using Domino 5.02 as the Web Server
> and WebSphere (2.03) as the servlet engine. I've implemented the example in
> Jasons book and get an IOException with a message of "Separation boundary
> was not specified".  Calling getContentType() returns:
>
> multipart/form-data
>
> (Notice there is no "boundary=" in the string, which explains the exception)
>
> Using an identical configuration, except now replacing Domino with Apache
> (still using WebSphere), the code works just fine (leading me to believe
> that it's a Domino issue). Calling getContentType() returns:
>
> multipart/form-data; boundary=---------------------------7cf1262820b04e4
>
> Has anyone successfully implemented similar functionality using Domino and
> WebSphere (or any other third-party servlet engine)??
>
> Thanks
> John
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to