File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Can't get the selected value of select in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can Watch "Can New topic
Author

Can't get the selected value of select in JSP

Sapumal Bandara
Ranch Hand

Joined: Oct 29, 2013
Posts: 31

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.



Be you.. not someone else.. in everything you do..
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
You already have if (!item.isFormField()) which gets the file, the else part would be

Sapumal Bandara
Ranch Hand

Joined: Oct 29, 2013
Posts: 31

Armitage, Thanks a lot man! it worked..


Regards,
Sapumal.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't get the selected value of select in JSP