Creating CompositeName for virtual portals
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Creating CompositeName for virtual portals




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Creating CompositeName for virtual portals  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:14 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register