aspose file tools*
The moose likes Struts and the fly likes tag 'select', field 'list', name 'courseName': The requested list key 'Course' could not be resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tag Watch "tag New topic
Author

tag 'select', field 'list', name 'courseName': The requested list key 'Course' could not be resolved

prabakaran javalover
Greenhorn

Joined: Oct 16, 2012
Posts: 4
hi, im newer to struts so please help me out o resolve this problem... ma issue only with <s:select> without this all works fine




jsp file
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Prabhakaran,

Similar Example is here. Seems everything is fine. Are you getting any warning in the jsp .

Regards
Jatan
prabakaran javalover
Greenhorn

Joined: Oct 16, 2012
Posts: 4
first of all thanks for the reply


Oct 16, 2012 5:58:18 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.6.0_20\bin;C:\Program Files\Java\jdk1.6.0_20\bin;.;
Oct 16, 2012 5:58:18 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-7070
Oct 16, 2012 5:58:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 329 ms
Oct 16, 2012 5:58:18 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 16, 2012 5:58:18 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Oct 16, 2012 5:58:18 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-default.xml]
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name struts-plugin.xml, skipping
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts-plugin.xml]
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Unable to locate configuration files of the name example.xml, skipping
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Parsing configuration file [struts.xml]
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.FileManager)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
Oct 16, 2012 5:58:19 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
INFO: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
Oct 16, 2012 5:58:19 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-7070
Oct 16, 2012 5:58:19 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 16, 2012 5:58:19 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/0 config=null
Oct 16, 2012 5:58:19 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Oct 16, 2012 5:58:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 814 ms
Oct 16, 2012 5:58:29 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
WARNING: No configuration found for the specified action: 'registration' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
Oct 16, 2012 5:58:29 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', name 'courseName': The requested list key 'Course' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
at org.apache.struts2.components.Component.fieldError(Component.java:240)
at org.apache.struts2.components.Component.findValue(Component.java:361)
at org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java:80)
at org.apache.struts2.components.Select.evaluateExtraParams(Select.java:105)
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:864)
at org.apache.struts2.components.UIBean.end(UIBean.java:516)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
at org.apache.jsp.register_jsp._jspx_meth_s_005fselect_005f0(register_jsp.java:234)
at org.apache.jsp.register_jsp._jspx_meth_s_005fform_005f0(register_jsp.java:118)
at org.apache.jsp.register_jsp._jspService(register_jsp.java:69)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)

this the error wat im getting
prabakaran javalover
Greenhorn

Joined: Oct 16, 2012
Posts: 4
please help me out!!


im new to struts for last one day i lost half of my hair on this issue
prabakaran javalover
Greenhorn

Joined: Oct 16, 2012
Posts: 4
i tried that to mr.jatan but its throwing same issue
Gaurav Manral
Greenhorn

Joined: Jun 29, 2012
Posts: 17

Clearly the values in your List 'Course' are not being set. Because your setter method is not executing. call this setter method like this-

May be this will fix your problem. Cheers..!!


Forgive your enemies, but never forget their names.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tag 'select', field 'list', name 'courseName': The requested list key 'Course' could not be resolved
 
Similar Threads
Need to know if I am doing this right or not
Struts 2 checkboxlist error - list key could not be resolved
simple struts2 validation needed on my action class
org.apache.jasper.JasperException: tag 'select', field 'list', name 'usingMap' in struts2
Problem with a sample Login/Logout in Sturts2