struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nagraj Rao" <>
Subject Re: select tag giving problem in jetty
Date Tue, 03 Apr 2007 15:22:21 GMT
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

----- Original Message ----- 
From: "arun kumar" <>
To: <>
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(
>        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
>        at 
> org.apache.jasper.servlet.JspServlet.service(
>        at javax.servlet.http.HttpServlet.service(
>        at 
> org.mortbay.jetty.servlet.ServletHolder.handle(
> :445)
>        at org.mortbay.jetty.servlet.ServletHandler.handle(
>        at org.mortbay.jetty.servlet.SessionHandler.handle(
>        at org.mortbay.jetty.handler.ContextHandler.handle(
>        at 
> org.mortbay.jetty.servlet.Dispatcher.include(
>        at org.apache.jasper.runtime.JspRuntimeLibrary.include(
>        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:
For additional commands, e-mail:

View raw message