struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From St├ęphane Zuckerman <stephane.zucker...@gmail.com>
Subject Re: accessing variables using logic:iterate
Date Tue, 16 Aug 2005 15:57:27 GMT
Hi Jay,
> session.setAttribute("recurringTaskSummary",v_recurringTaskSummary),

> SpRecurringTaskSummary [...] has certain variables such as
> EmployeeName, EmployeeRef etc.
> 
> I am using logic:iterate as follows:
> <logic:iterate id = "rtSummary" name="recurringTaskSummary">
>             <bean:write name="rtSummary"/>
> </logic:iterate>
> 
> The output is name of objects. However I want to somehow access the
> variables employeename, employeeref etc. How do I do that ?

Just do something like :

<logic:iterate id="rtSummary" name="recurringTaskSummary">
	<bean:write name="rtSummary" property="employeeName"/>
</logic:iterate>

Don't forget to use the bean naming conventions, though.

-- 
St├ęphane ZUCKERMAN

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


Mime
View raw message