Hey!

Jason Hunter changed the MultiparRequest class to work with WebSphere 2.0.

You can download it at
http://www.oreilly.com/catalog/jservlet/

Sans adieu,
Danny Rubis

Palanisamy Easwaran wrote:

> Hi,
>
>  I am using Websphere 3.0 application server , I have problem in uploading files
> using MultipartRequest class  which is not a problem with JWS2.0.
>
> I notice that it is not problem with getContentType().

This scares me.  You should have a problem.  See above suggestion.

>
> When it is reading the first line , the line doesn't have the boundary at all,
> it has some of contents of file (not even  first line of file ).
>
> Have anyone encountered this kind of problem? or am I doing anything wrong?
>
> please advise.Thanks a lot.
>
> with regards,
> easwar.P
>
> ---------------------------------------- Message History
>       ----------------------------------------
>
> From: [EMAIL PROTECTED] on 01/05/2000 02:26 PM GMT
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Re: File uploads using Domino 5.02 and WebSphere
>
> Danny, I did get this to work. Like Jason said, just replace the
> req.getContentType() call with req.getHeader("Content-Type") and
> everything's good. (Incidently, you may be having a problem because you're
> doing an .equals rather than a .startsWith).
>
> John
>
> -----Original Message-----
> From: Jason Hunter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 04, 2000 8:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: File uploads using Domino 5.02 and WebSphere
>
> 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
>
> ___________________________________________________________________________
> 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

Reply via email to