File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Unable to Loading List in select tag in Struts2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to Loading List in select tag in Struts2.0 " Watch "Unable to Loading List in select tag in Struts2.0 " New topic
Author

Unable to Loading List in select tag in Struts2.0

Rajnikant Panchal
Greenhorn

Joined: Oct 12, 2012
Posts: 3
Hi....

I am doing DWP in Struts2.0 with Hibernate and i have two tables Country and State
when i want to add State then in the AddState.jsp file the List of Country is not i am able to getting error is occured like
org.apache.jasper.JasperException: tag 'select', field 'list': The requested list key 'countryList' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location

i want to load all country in select tag in AddState.jsp file when i am run the AddState.jsp File

Please help me......
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Struts2 Select Tag Example

Try the above example if you have any problems post here.

Prepare Interceptor and consider this interceptor when you are doing pre population logic.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
mangesh jogade
Greenhorn

Joined: Aug 28, 2009
Posts: 4
Can you please share jsp code /select tag you are writing?


--MJ
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485



For your reference Struts2 Form Tags
Rajnikant Panchal
Greenhorn

Joined: Oct 12, 2012
Posts: 3
Thanks lot to ALL
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to Loading List in select tag in Struts2.0
 
Similar Threads
Struts2.0 in Netbeans5.5
struts2.0 DoubleSelect condition
headerKey in s:select tag in struts2.0
struts2.0 example console message
struts2.0 application issues