This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes I want to insert normal data and image in one servlet but am getting one problem ? 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 "I want to insert normal data and image in one servlet but am getting one problem ?" Watch "I want to insert normal data and image in one servlet but am getting one problem ?" New topic
Author

I want to insert normal data and image in one servlet but am getting one problem ?

Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
this is jsp page
-----------------



this is servlet code
---------------------


--------------------------------------------------------------------------------------------------------------
while running above program i am getting name,fname,mname values as null,null,null . please any one solve my problem

[Added code tags - see UseCodeTags]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Seems, you are using Apache Common FileUpload . fine , you should not use HttpServletRequest#getParameter to get filed value .


add else block to your if (!item.isFormField()) => it is a form field then?
as in
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to insert normal data and image in one servlet but am getting one problem ?
 
Similar Threads
how to upload using html or javascript?
Getting "not a multipart request" even though the image is being saved.
FileUpload - Form Fields shows Null value
Issues with uploading files and simple plain fields
Image insertion problem