08-06-07 06:21 AM
Hi,
I'm trying to write some code to get the ObjectID of a page that exists in a
virtual portal. This code is in a jsp that will be in the screens folder.
So far, I've got
Context ctx = new InitialContext();
Name uniqueName = new CompositeName("portal:uniquename");
uniqueName.add(pageName);
ObjectID oidForName = (ObjectID) ctx.lookup(uniqueName);
This works fine when the pageName exists in the root context. However, if t
he page is in a virtual portal, the lookup returns null.
Am I using the wrong InitialContext()? Maybe I need to use something else t
o get the context object for the virtual portal.
Or may be my base name - "portal:uniquename" is incorrect and I should be us
ing something else?
Can some one help with this?
Regards,
Vivek
[ Post a follow-up to this message ]
|