Hi Martin, Thanks for the reply. I apologize if I was not clear earlier. Let me try to rephrase my question again. The 'selected' value of the auto-select comes from another bean property. The iterator is used to iterate over an action specific bean property.
The s:select is used inside s:iterator loop. The value of the bean#attribute (ActionItemTracking#status) provides the value to the <s:select /> tag. The 'list' value provided to the tag is a map and it is an action scope. I am looking to iterate the list variable and if the value of ActionItemTracking#status matches the list map key, then i want to have it as selected. This is not working for me. Thanks, Kartik > > 2010/4/24 Martin Gainty <mgai...@hotmail.com> > > <s:select > key="search.criterion" > name="searchCriterion" > list="#{'': 'Select One', > 'bean.attributeValue':'bean.attributeValue','abc':'abc'}" > required="true" > onchange="showSearchCriterionField()" > headerKey="abc" > headerValue="abc" > > /> > > Martin Gainty > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > Date: Fri, 23 Apr 2010 17:11:24 -0700 > > Subject: Setting selected with s:select tags > > From: krishnan.1...@gmail.com > > To: user@struts.apache.org > > > > Hi Struts gurus, > > > > I am have an object level attribute that is selected from the s:select > tag. > > > > <s:select key="search.criterion" name="searchCriterion" > > list="#{'': 'Select One', > 'bean.attributeValue':'bean.attributeValue', > > 'abc':'abc'}" > > required="true" onchange="showSearchCriterionField()" /> > > > > If I want to set 'abc' to selected, then how do do that ? Any advice > would > > be welcome. > > > > Thanks, > > > > Kartik > > _________________________________________________________________ > The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with > Hotmail. > > http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 >