Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't get the selected value of select in JSP

 
Sapumal Bandara
Ranch Hand
Posts: 31
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys, I was assign to create a small web app to upload a file, along with a combo box to select some category. File uploads perfectly. But I cannot catch the combo box value.. where should I put "request.getParameter("categories")" in my servlet.. any help much appriciated..

Servlet





Index




Regards,
Sapumal.


 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You already have if (!item.isFormField()) which gets the file, the else part would be

 
Sapumal Bandara
Ranch Hand
Posts: 31
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Armitage, Thanks a lot man! it worked..


Regards,
Sapumal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic