Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] Ajax form and file submission with s:a

Martin Gainty

2007-01-14

Replies:

for some reason when I reference example.jsp from struts-showcase-2.0.1 struts-showcase-2.0.1\tags\ui\example.jsp I see the error
favouriteLanguages key not found
which properties file contains this key?

  <s:select
       tooltip="Choose Your Favourite Language"
       label="Favourite Language"
       list="favouriteLanguages"
       name="favouriteLanguage"
       listKey="key"
       listValue="description"
       emptyOption="true"
       headerKey="None"
       headerValue="None"/>

here is the exception
org.apache.jasper.JasperException: tag 'select', field 'list', name 'favouriteLanguage': The requested list key 'favouriteLanguages' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name}
 org.apache.jasper.servlet.JspServletWrapper.handleJspException (JspServletWrapper.java:510)
 org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:393)
 org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264)
 javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
 org.apache.struts2.dispatcher.FilterDispatcher.doFilter (FilterDispatcher.java:248)
 com.opensymphony.module.sitemesh.filter.PageFilter.parsePage (PageFilter.java:118)
 com.opensymphony.module.sitemesh.filter.PageFilter.doFilter (PageFilter.java:52)
 org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter (ActionContextCleanUp.java:118)
???M----------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
---------------------------------------------------------------------------
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message -----
From: "Dariusz Wojtas" <dwojtas@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Sunday, January 14, 2007 1:01 PM
Subject: Re: [S2] Ajax form and file submission with s:a


> Musachy!
>
> I must have been blind (no wine today).
> I checked again the datetimepicker in the ajax form - but I can
> clearly see that it nicely generates a table row with 2 columns.
> I am sorry for the wrong message before - it's blindness.
>
> [time is still not recognized]
>
> Best regards
> Dariusz Wojtas
>
> On 1/14/07, Musachy Barroso <mbarroso@(protected):
>> I've never tried that myself, but if dojo.bind() supports submission of
>> forms with files, then it should be possible.
>>
>> //did you ever figure out the problem with the date?
>>
>> regards
>> musachy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
©2008 junlu.com - Jax Systems, LLC, U.S.A.