This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Have you checked out Aspose?
subject: Problem in servlet wrt browser
It's not a secret anymore!