I don't believe OGNL supports concatenation of lists, but such functionality could be achieved using chained subexpressions :
( ticketStates.add(0,new MyObject(-1,"All")), ticketStates ) which would insert the new object into the head of the list, and then return the ticketStates object as the return value. Jan Röhrich wrote: > > Hello, > > I want to use the <s:select> tag rendering a dropdown list of objects: > > <s:select list="ticketstates" listKey="id" listValue="state"> > </s:select> > > This works but now I need an additional option displayed which is not in > the "ticketstates" list. It should be a mapping of "-1" -> "all" which > semantically means "all options a once". > > Is there a way to add a list entry using ognl or something similar? I > don't want to add the special entry in my action because it is only > needed in the view. > > Thanks in advance. > > Jan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Joining-list-with-OGNL-tf4441687.html#a12676466 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]