File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nazeer Ahammad
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic