struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nielsen, Jim" <>
Subject iterate over an Enumeration
Date Mon, 23 Jun 2003 19:01:41 GMT

I am new to Struts and trying to figure out an iterate problem.

I have an action class that uses a business class to return an Enumeration
of objects.
I am trying to pass the enumeration back to jsp and iterate through the set
of objects, displaying attributes for each object in the set. I'm not having
any luck figuring this out.

The action class get the info and sets a variable in the form and also sets
an Attribute (just trying to see what works)

	DirListForm dlf = (DirListForm) form;
	Enumeration dirList = fh.getDirListWithSubDirs(appAbsPath);
	request.setAttribute(Constants.DIR_LIST_KEY, dirList);
The JSP has this:

	<logic:iterate id="FileInfo" property="dirList"
		<bean:write name="FileInfo" property="name"/><br>

What do I need to change to get the iterate to 'iterate' over the
Enumeration of objects?

Any and all help is appreciated.

Jim Nielsen
phone: (810) 234-4025 (8-394)
AOL IM: JimRNielsenEDS

4100 S. Saginaw., MC:  485-303-321
Flint, MI  48557

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message