Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to Loading List in select tag in Struts2.0

 
Rajnikant Panchal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
mangesh jogade
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please share jsp code /select tag you are writing?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


For your reference Struts2 Form Tags
 
Rajnikant Panchal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks lot to ALL
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic