Danny Rubis wrote:
>
> Hey!
>
> For req.getHeader("Content-type"), I get the boundary string now
> // 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.
Why do the if? Just replace req.getContentType() with
req.getHeader("Content-Type") straight up. I'm told by others that
works for WebSphere, and since no other servers should have a problem
with this workaround I'm going to make it official.
Odds are your if check above wasn't returning true for some reason.
You could add System.out.println() calls to figure out the codepath
it's taking if you're curious. I bet the getHeader() wasn't being
called.
-jh-
___________________________________________________________________________
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