> Does any know why the following exception is occurring when using
> Jason Hunter's MultipartRequest class.
> Thanks in advance.
>
> MultipartRequest Exception caught Malformed line after disposition:
> Cont java.io.IOException: Malformed line after disposition: Cont
Looks to me like it's trying to get the content-type of the submit but
the Content-Type line is showing up as just "Cont". It's likely your
web server is at fault. An email from Suvinay (below) diagnosed a
similar problem with regards to the boundary separator not returning
correctly.
I'm swamped with work right now, so if you're having problems I
recommend you roll up your sleeves and go hunting. Use the debugging
techniques described in Chapter 13. Run SocketWatch to see exactly what
the client is sending to the server. Is it formatted correctly? Then
run your servlet in a debugger or with a lot of println() calls to see
how it parses the client's data. Is it making a false assumption?
You should quickly be able to find the disconnect. Please post back to
the list with what you find and we'll see what can be done.
-jh-
Suvinay Sinha wrote:
>
>
>
>
> Yes...because Jason queries the Content-type of POSTed data for
> boundary separator..but due to reasons known only to Lotus domino
> server, the Content-type returned does not include the boundary
> separator. Try dumping the posted data to a file. The first line of
> the posted data (not the header part - after the header) consists of
> the boundary separator..you can write a method to scan till you hit
> CRLF...set the boundarystring to that method and you will be back to
> okay.
>
>
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's
> Java Servlet API Technology.
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ben
> Quarless
> Sent: Friday, February 19, 1999 2:24 PM
> To: [EMAIL PROTECTED]
> Subject: multipart/form-data
>
> I'm using Jason Hunter MultipartRequest class from his book
> Java Servlet Programming. This class works great when
> sending files to Netscape's web server but fails when using
> Lotus Domino web server version 4.6. The exception
> "Separation boundary was not specified" occurs.
>
> Has anyone else experienced this problem ?
>
>
___________________________________________________________________________
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