I can give you a simple use case we have which annoys the crap out of me:

In S1 we used our business layer to get a collection of objects. Depending
on how that collection was used we might need to add an object to it. For
example on a search form we would add a not applicable object to the start
of our collection. This would allow to see if that parameter should be used
in the search. Or another example is when getting a list of images from the
file system and you want to give the user the option for no image. This is
how we do this in S1:

<html:select property="image">
    <html:option value="-1">No Image</html:option>
    <html:optionsCollection name="fileList" label="fileName"
value="fileName"/>
</html:select>

I'd love to be able to do something similar in S2, but instead we have had
to write support methods in view support classes to implement it.

The OGNL Language guide says its possible but I'm having trouble getting it
to work.

Z.

> Maybe there is some OGNL trick, but I wouldn't know how. Are you sure you
> want to change manipulate arrays in your pages (view)? Maybe there is a
> valid use case for it, but it sounds weird to me.
> 
> musachy
> 
> On 6/6/07, Ezequiel Puig <[EMAIL PROTECTED]> wrote:
>> 
>> Musachy,
>> 
>> Thanks a lot for the comments about the <s:url> tag.
>> 
>> About the other questions i proposed, do you know if it's possible to
>> manipulate arrays with the s2 tags ??
>> 
>> 
>> 
>> 




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

Reply via email to