The moose likes Struts and the fly likes DropDown Menu error in Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DropDown Menu error in Struts 2" Watch "DropDown Menu error in Struts 2" New topic

DropDown Menu error in Struts 2

Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
Hi All,

I am trying to create a dropdown menu on using struts2 .
I am implementing the UI on jsp with struts taglib.

Now I want to populate the data on the dropdown froma database.
For this I have used the following and created an arraylist

The action for the above submit form is

However I am getting the following error

Please suggest me where I am going wrong.

Sunil Sunny
Ranch Hand

Joined: Oct 18, 2011
Posts: 41
you must first delete the name attribute. and then check if you get some value in drop down then tell me
subject: DropDown Menu error in Struts 2
Similar Threads
Need to know if I am doing this right or not
Struts2 newB: some simple questions
Dropdown creation dynamically from DB lookup
s:select Error The requested list key 'encoder' could not be resolved as a collection
HTTP Status 404 - /Struts2Application1/clientAction + Please help