Skip to Content
0
Former Member
Feb 24, 2006 at 09:58 AM

Iterating true an Enumeration

26 Views

Hey people!

Im using the method getProperties() in my AbstractPortalComponent. This method returns an enumeration of the properties name. When im iterating true the Enumeration, i get so much extra values out from the loop.

public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)

{

IPortalComponentContext context = request.getComponentContext();

IPortalComponentProfile profile = context.getProfile();

Enumeration e = (Enumeration) profile.getProperties();

while(e.hasMoreElements()) {

String name = profile.getProperty(e.nextElement()

.toString());

response.write(name);

}

}

Am I missing a casting or something? When im running it in the portal in a view, i get the whole pcd url, information about the broswer, pixels, the time and so on.