| Author |
Determine 'portal' or 'myportal' from code?
|
|
|
| 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
| |
|
| 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>
| |
|
| 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
| |
|
| ok, i did something like this:
<form action="/wps/<wps:if loggedIn="yes">my</wps:if>portal/SearchResults" method="post">
and it seems to work
|
|
|
|