Hey!
For req.getHeader("Content-type"), I get the boundary string now
multipart/form-data; boundary=---------------------------5526234123997
WebSphere Advanced ver.2.02 & LotusGo ver. 4.2.6.5.
BTW, WebSphere Standard 1.0 worked.
But I tried changing Jason's readRequest() with this addition.
import javax.servlet.http.*; // because Jason uses javax.ServletRequest
// that doesn't have the getHeader()
method.
public class MultipartRequest {
private HttpServletRequest req;
public MultipartRequest(HttpServletRequest request, //change the request
type
String saveDirectory) throws IOException {
...
...
...
}
public MultipartRequest(HttpServletRequest request, //change the request
type
String saveDirectory,
int maxPostSize) throws IOException {
...
...
...
}
// For WebSphere version >1.0 && WebSphere < 3.0,
I changed Jason's MultipartRequest class' readRequest() to add
if (type.equals("multipart/form-data"))
type = req.getHeader("Content-type");
This DOES NOT work.
Jason please help out with a work around.
Thank you.
Sans adieu,
Danny Rubis
"Alchin, John" wrote:
> I don't believe the bug is in WebSphere. Using Apache and WebSphere (same
> version, 2.03), everything runs fine. It's only when Domino is in the mix do
> things fall apart, so I think the problem lies there. Either way, I tried
> your suggestion of calling getHeader("Content-type") and that *does* appear
> to be returning the boundary= string. Guess I could sub-class your class and
> override the method for finding boundary=.
>
> Thanks,
> John
>
> -----Original Message-----
> From: Jason Hunter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 04, 2000 12:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: File uploads using Domino 5.02 and WebSphere
>
> 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".
>
> There seems to be a bug in WebSphere that causes this error. People
> report that upgrading to WebSphere 3.x fixes the problem. WS 2.x must
> remove the "boundary=" information from the header.
>
> Would someone check if getHeader("Content-type") returns the boundary=
> string? If so, changing getContentType() to getHeader("Content-type")
> would be a good workaround.
>
> -jh-
>
> --
> Jason Hunter
> [EMAIL PROTECTED]
> Book: http://www.servlets.com/book
> 2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
> 2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.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
>
> ___________________________________________________________________________
> 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