File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Problem in servlet wrt browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in servlet wrt browser" Watch "Problem in servlet wrt browser" New topic

Problem in servlet wrt browser

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a jsp page that contains a BLOB object for binary data. The enctype of the form containing the BLOB object is
declared as : enctype="multipart/form-data".
There is also a program that parses the form and stores the
parameters in hash table.
The problem is:
In case of the browser being Internet Explorer there is no
problem but in case of the browser being Netscape Navigator
there is a null pointer exception on Post.
Actually in the latter case the "contenttype" parameter of
the form comes as null. But the same does not happen
in case of Internet Explorer.
I would like to know the cause of contenttype being finite
in IE and null in NetscapeNavigator.

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
"Nilanjan B",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Problem in servlet wrt browser
It's not a secret anymore!