Re: accessing variables using logic:iterate

2005-08-17 Thread Stéphane Zuckerman
Dave wrote : As a followup, you may want to consider switching to JSTL for straight-forward tasks such as this: where functionality is duplicated between the Struts tags and JSTL it's generally recommended to go the JSTL route. It's a trivial switch to make, and can be done mechanically in

[OT] Re: accessing variables using logic:iterate

2005-08-17 Thread Dave Newton
Stéphane Zuckerman wrote: What I really dislike with struts tags is that attributes don't always mean the same thing from tag to tag, which is disturbing. I'm mainly thinking of the name and property, and .*Name attributes too. Ah, I'm glad to hear I'm not the only one that is wogged by

accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Hi, Currently I have a action class which does session.setAttribute(recurringTaskSummary,v_recurringTaskSummary), where v_recurringTaskSummary is a vector of type SpRecurringTaskSummary which has certain variables such as EmployeeName, EmployeeRef etc. I am using logic:iterate as follows:

Re: accessing variables using logic:iterate

2005-08-16 Thread Stéphane Zuckerman
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

Re: accessing variables using logic:iterate

2005-08-16 Thread Dave Newton
Stéphane Zuckerman wrote: 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

Re: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary bean:write name=rtSummary property=employeeName/ /logic:iterate it says not getter for employeeName in bean rtsummary. 'recurringTaskSummary' is a vector and not a bean. I tried using the attribute

Re: accessing variables using logic:iterate

2005-08-16 Thread Dave Newton
Jay Sheth wrote: HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary bean:write name=rtSummary property=employeeName/ /logic:iterate it says not getter for employeeName in bean rtsummary. 'recurringTaskSummary' is a vector and not a bean. I tried using the attribute

Re: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Thanks a lot. Got it. As you said, the naming conventions were followed, but I made a typo in the property attribute. Sorry for the trouble. Jay On 8/16/05, Dave Newton [EMAIL PROTECTED] wrote: Jay Sheth wrote: HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary