struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <milanmilanov...@yahoo.com>
Subject Re: [S2] Iterate through two lists
Date Tue, 26 Aug 2008 15:13:19 GMT

Dear Dave,

I tried everything nad I always got null values. I think that I have similar
problem as here:  http://www.nabble.com/More-OGNL-Woes-td18877994.html
http://www.nabble.com/More-OGNL-Woes-td18877994.html , altough without
importing. I tried all of these syntax and it doesn't work, I tried even
without params' "name" attribute.

I'm stuck here with my project for days now :-((((((.

--
Milan



newton.dave wrote:
> 
> ...
> 
> I already knew the JSP that was causing the error.
> 
> Dave
> 
> --- On Mon, 8/25/08, Milan Milanovic <milanmilanovich@yahoo.com> wrote:
> 
>> From: Milan Milanovic <milanmilanovich@yahoo.com>
>> Subject: Re: [S2] Iterate through two lists
>> To: user@struts.apache.org
>> Date: Monday, August 25, 2008, 1:10 PM
>> Hi Dave,
>> 
>> here is complete jsp:
>> 
>> <s:iterator value="activeOrder.orderList"
>> status="rowstatus">
>>    <tr id="row_<s:property
>> value="reference"/>"
>> class="odd">
>>        <td>
>> 	<s:text name="order.ref" >
>> 		<s:param name="value"
>> value="reference"/>  <- THIS WORKS
>> 	     </s:text>
>> 	
>>        </td>
>>        <s:if test="#session.order != null">
>> <- order in session is
>> recognized
>> 	<td> 
>> 		<s:text name="order.price" > 
>> 			<s:param name="value"
>> value="#session.order.orderList[#rowstatus.index].price"/>
>> <- null values
>> 		</s:text>
>> 	</td> 
>>         </s:if> 
>>         <td> 
>> 	<s:text name="order.price" > 
>> 		<s:param name="value"
>> value="price"/> <- HERE IT WORKS, from
>> activeOrder.
>> 	</s:text>
>>         </td> 
>>   </tr>
>> </s:iterator>
>> 
>> I checked many times if I have orderList in my session and
>> I have orderList
>> in it filled.
>> 
>> --
>> Milan
>> 
>> 
>> newton.dave wrote:
>> > 
>> > --- On Mon, 8/25/08, Milan Milanovic wrote:
>> >> <s:if test="#session.order !=
>> null">  
>> >> <- HERE IT WORKS (order is recognized
>> >> in session)!!
>> >>    <td>
>> >>        <s:text name="order.price"
>> >
>> >>                   <s:param
>> name="value"
>> >>
>> value="#session.order.orderList[#rowstatus.index].price"/>
>> >> <- HERE IT
>> >> DOESN'T WORK - null value!
>> >>             </s:text>
>> >>    </td>
>> >> </s:if>
>> > 
>> > "IT" is two *entirely different
>> expressions*, and you continue to provide
>> > no additional information that might be usable to
>> solve the problem. It's
>> > not an OGNL syntax issue. If you want more help,
>> provide more details.
>> > 
>> > (IIRC I also didn't use <s:param...>'s
>> "name" attribute; I don't think
>> > it's necessary, although I don't know if the
>> presence of it will cause the
>> > message to be parameterized incorrectly.)
>> > 
>> > Dave
>> > 
>> > 
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail:
>> user-help@struts.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147809.html
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail:
>> user-help@struts.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19164005.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message