Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in servlet wrt browser" Watch "Problem in servlet wrt browser" New topic
Author

Problem in servlet wrt browser

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
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
Sheriff

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 http://www.javaranch.com/name.jsp . 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.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
 
subject: Problem in servlet wrt browser
 
Similar Threads
uploading images using strut
Java Mail Question...
Request parameter is missing
list of available values for enctype attributes in form tag
Servlets, HTML forms, multipart/form-data