WebSphere Portal Server - Determine 'portal' or 'myportal' from code?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > December 2006 > Determine 'portal' or 'myportal' from code?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Determine 'portal' or 'myportal' from code?

2006-12-19, 7:35 am

Hello,

I'm trying to determine the 'portal' or 'myportal' part of a url that I am making manually. Is there a method that I can use?

Thank you
jim
Bala Labhishetty

2006-12-19, 1:24 pm

Check the userId from request object. If userId exists the url is myportal (authenticated) or else portal. Just I am raising my opinion, i am not sure about your exact requirement.

Thanks & Regards,
Bala

2006-12-19, 1:24 pm

in jsp you test that with following tags :

<wps:if loggedIn="yes"> myportal in url </wps:if>
<wps:if loggedIn="no"> portal in url </wps:if>

2006-12-20, 7:25 am

Ok, thank you a lot, probably the "ifloggedin" tag is the way to go, but I was hoping that a request.getScheme() kind of method would do it automatically.

Thanks again.
jim

2006-12-20, 7:25 am

ok, i did something like this:
&lt;form action="/wps/&lt;wps:if loggedIn="yes"&gt;my&lt;/wps:if&gt;portal/SearchResults" method="post"&gt;

and it seems to work
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com