Hello Ranchers
This question might sound weird but I'm not able to find an answer. I'm trying to populate a drop down list in my
servlet program but not getting a clue how to populate.
And I want to populate it using servlet program itself and not
JSP or Javascript or any other. Here's the sample code, have given the Post method only:
If you observe the try block, the first statement "set..." is empty. My question is what should I insert there. As it is a list I cannot insert
String(setString) or any other. I have checked the API too, but din't get an answer. Do we have any method in the PreparedStatement API, that allows us to populate a list in the servlet or is there any other option for this?
Any help would be much appreciated.