title: struts2 drop down
body: <p>I need to create a drop down menu in struts2 from List. How can I create an action class so that when a .jsp page is loaded, it populates the list first?</p>
  
  <p>i found this link <a href="http://www.mkyong.com/struts2/struts-2-sselect-drop-down-box-example/" rel="nofollow noreferrer">http://www.mkyong.com/struts2/struts-2-sselect-drop-down-box-example/</a> , it works too but for it work user must go to <a href="http://localhost:8080/Struts2Example/selectAction.action" rel="nofollow noreferrer">http://localhost:8080/Struts2Example/selectAction.action</a> to make it work but what if someone were to directly go to select.jsp.</p>