I'm finding the same thing happening in my application.

I'm currently providing a map of values in the struts select tag. I've printed out the values of the map into the jsp and those values are printed fine, but somehow the drop down doesn't work, in fact the rendering itself stops since it doesn't get the list attribute of the select tag in the form of a collection/array/map,etc.

This problem occurs only with Jetty (6.1.2 RC2 version). However in the tomcat server it seems to work fine without any problems.

Also after trying out with some hard-coded values in the list attribute, it select tag works fine. So i'm not able to make out whether its a problem with the scoping of the fields.

I'm referring to the variable as follows
<s:select  ...   list="#application.COUNTRY_LIST" ..../>

Kindly help.

Thanks & regards
Nagraj.

----- Original Message ----- From: "arun kumar" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Monday, April 02, 2007 1:10 PM
Subject: select tag giving problem in jetty


Hi ,

I'm getting error in the select tag of Struts2, while running application in
jetty server... At first time its giving the error and if I restart the
server then at time its working fine(Its work fine in Tomcat at first
instance itself) ....

Error Stack trace for your reference:

list size from application context--->117
2007-04-02 13:06:34.671::WARN:  EXCEPTION
org.apache.jasper.JasperException: tag 'select', field 'list', name
'catalog': The requested list key '#appli
cation.COMBINED_CATALOG_CATALOGGROUP_LIST' could not be resolved as a
collection/array/map/enumeration/iterat
or type. Example: people or people.{name}
       at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:387)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:440)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:335)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:445)
       at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:356)
       at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:226)
       at org.mortbay.jetty.handler.ContextHandler.handle(
ContextHandler.java:627)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
       at org.apache.jasper.runtime.JspRuntimeLibrary.include(
JspRuntimeLibrary.java:983)
       at
org.apache.jsp.jsp.auctioncentral.AuctionCentral_jsp._jspx_meth_s_form_0(
org.apache.jsp.jsp.auctio
ncentral.AuctionCentral_jsp:139)


#application.COMBINED_CATALOG_CATALOGGROUP_LIST' contains list of beans, I
can able to print the size of the list also...What would be the problem? Can
anyone help me out....

Thanks in advance...
regards,
Arun K



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to