How to get value from DB in Struts 2 dropdown along with list
问题 I am using Struts2 framework for my application and my code is as follows, /*Setting dynamic dropdown of service Type*/ ShowSearch drop=new ShowSearch(); service=drop.serviceType(); setService(service); I am getting list of values from DB (Lets say values are "Apple","Cat","Jack","Zag") and it has shown in struts2 dropdown as mentioned in JSP . <s:select id="serviceType" name="serviceType" label="What is the service offering" required="true" value="%{serviceType}" list="service" /> When I am