Is it possible to use a variable to replace "Component" in the pageWithName(Component.class.getName()); syntax?

For example how would I change the code below to the syntax above?

String usergroupcodestring = session.currentUser.group().code();
String pageName = "Main"+usergroupcodestring;
return pageWithName(pageName);

The following doesn't work.

String usergroupcodestring = session.currentUser.group().code();
String pageName = "Main"+usergroupcodestring;
return pageWithName(pageName.class.getName());

Thanks,
David
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to