on 09-23-2008 9:32 AM
Hi,
I have to access the same portal server for the two diffent url links.
This is required for me to have two different logon pages for the portal for completely different urls.
Please share your ideas here!
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your promt replies!.
I already read the blog that you have mentioned!
I can do coding in logon page jsp to differenciate 2 urls and display the different logon pages based on the urls.
But my question is I have to have 2 completly different Urls which should refer the same logon page. How to acheive this.
Ram
Hi,
say for example
your one URL is
x.hostname:portno/irj/1stURL
and the second URL is
x.hostname:portno/irj/2ndURL
and maintain two umLogonPagedefault.jsp with names,
umLogonPage1stURL.jsp and umLogonPage2ndURL.jsp and do the necessary coding you want inside the JSPs.
Now, umLogonPage.JSP is the JSP file responsible for determinig your portal URL to open when user wants to enter into portal. So Open that JSP(umLogonPage.JSP) and do like this:::
<%
String strReqURL = request.getRequestURL().toString()==null?"" : request.getRequestURL().toString() ;
%>
<%
if ( strReqURL != null && strReqURL.endsWith("/1stURL"))
{
%>
<%@ include file="umLogonPage1stURL.jsp"%>
<%
}
else if ( strReqURL != null && strReqURL.endsWith("/2nuURL"))
{
%>
<%@ include file="umLogonPage2ndURL.jsp"%>
<%
}
%>
Regards,
Srinivas.
Thanks Sreeni!
You are correct, it possible to have the urls like as you mentioned.
x.hostname:portno/irj/1stURL
and the second URL is
x.hostname:portno/irj/2ndURL
As per my requirement the hostnames should be different.
Example:
Url1: myhost1:50000/irj/portal
Url2: myhost2:50000/irj/portal
I need to refer the same logon par file if access the portal using anyone of the url.
Any ideas?
Ram
Hi,
Gnrlly when ever user wants to login to portal what will happen is
inside LogOn.PAr, first umLogonPage.JSP will be called. By default there will be no If conditions inside. So from umLogonPage.JSP control will get redirected to umLogonPageDefault.JSP, where you will have your normal Login Page which will be displayed for user to enter login data.
So In our case, What we will do is inside umLonPage.JSP, we will check for the URL in the browser and depending upon the URL we will call the respective umLogonDefault.JSP(we renamed them as umLogOnURL1.JSP and umLogonURL2.JSP) page.
Here all the 3 JSPs are inside the same LogOn.PAR
Regards,
Srinivas.
Edited by: srinivas sistu on Sep 24, 2008 11:39 AM
Sreeni,
You are right. Its possible to have 2 JSPs as you said.
Consider this situation,
I have one portal url which calls logon page whenever I access the portal.
Now I would like to have onemore url which also has to call same logon page.
If am able to do this, I can control the portal logon page display based on url in the logon page itself.
Your suggestions please!
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramganesan,
I think you should write a custom program to identify the URL and then redirect it correct portal desktop.
Custom program will identify the URL and fetch the different logon par for different URL.
Customize the logon par to differentiate the URL like images or text or layout.
Hope it helps.
Regards,
Prashil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Ram,
What sites you are going to create with the urls is the sites are anonymous sites(External Facing Portals).
Regards,
Rudradev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.