struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chase <ch...@osdev.org>
Subject Re: How to get elements from a list without using <logic:iterate
Date Wed, 14 May 2008 21:52:25 GMT
EL is not the JSTL. EL can be used outside of the JSTL (assuming you are 
on a recent version of the spec).

You might have better luck asking in the correct mailing list. This list 
is for the development of Struts, not usage.

-Chase

whitesox12 wrote:
> Is there any other way other than using JSTL. As I am trying to use struts
> tags only.
>
> Thanks
>
> Antonio Petrelli-3 wrote:
>   
>> 2008/5/14 whitesox12 <burn_hall@yahoo.com>:
>>     
>>>  Hi,
>>>
>>>  I have a List that holds only 5 JavaBean Objects. Now I need to show the
>>>  data on the JSP but don't want to use the <logic:iterate....
>>>
>>>  Is there a way to manually get the List element by index and show data
>>> on
>>>  the page in specific area and then get the next element i.e. List.get(0)
>>>  then show the data and then List.get(1) etc. without using
>>> logic:iterate.
>>>       
>> You could use EL:
>> ${myList[0].myProperty}
>>
>> HTH
>> Antonio
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>
>>
>>     
>
>   


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message