| Author |
I want to insert normal data and image in one servlet but am getting one problem ?
|
Nazeer Ahammad
Greenhorn
Joined: Feb 26, 2012
Posts: 15
|
|
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
|
 |
 |
|
|
subject: I want to insert normal data and image in one servlet but am getting one problem ?
|
|
|