on 05-18-2012 12:24 PM
Hi,
My requirement is I have to show different sap portal CE 7.3 logon page to different user depending on the portal URL parameter.
If the url parameter say department is "finance" that is if the portal url is http://abc.def.com:50000/irj/portal?department=finance
I want to redirect the the user to new logonpage.jsp which i will create and if the user access the portal through http://abc.def.com:50000/irj/portal, orginal logon page of ce 7.3 should be shown.
for this I have modifies my logonpage.jsp and I am reading the URL parameter and redirecting to the newlogonpage.jsp
I am using this code:
<% if(uiFrameVisible){
String aa= request.getParameter("department");
if(aa==null)
{
aa = "";
}
if(aa.equalsIgnoreCase("finance"))
{
//response.sendRedirect("newlogonpage.jsp");
%>
<jsp:forward page="newlogonpage.jsp">
</jsp:forward>
<%
}
%>
But this code is not working, I am not able to forward to another jsp within same war file of ce 7.3 (ui.war file )
Please suggest how to make it working, so that different user see different logon page depending on the url parameter.
Please help.
Hi Arush,
Working on Logon component is not that easy as it seems to be. You have added up that piece of code in your jsp component of the logon page, But the flow works from the logonbean.class.
If you can be more clear on your purpose of doing this, there can be another solution for the same.
1) Is there only one dept Finance as you mentioned? Or you have many? I mean, you need only two login pages, or more is required?
2) What is the count of users accessing the different URLs?
Regards,
Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atul,
As of now I have only 2 department and I need only 2 logon pages as of now.
two logon page will have completely different look and feel, which i can design. for this i want to create 2 jsp namely
a) first one is standard logonpage.jsp
b) second one say i have created newlogonpage.jsp
One set of users will access portal with standard portal url (/irj/portal) and second set of user will access portal with url parameter embedded in the portal url that is (/irj/portal?department=finance)
in both case we have around 1 lakh users. I am working in CE 7.3 portal.
I am able to read the url parameter in logonpage.jsp
Now since CE 7.3 has war file, so I want to know where all I have to create entry for the newlogonpage.jsp and how I have to forward/redirect to newlogonpage.jsp if url parameter is not null.
Also if users logout than he should see newlogonpage.jsp after logging out if he has enetered his username and password from newlogonpage.jsp .
Please help me how to modify the war file of CE 7.3 to meet this requirement.
Please help me in step by step
Thank you.
Arush,
Unfortunately, I have not worked on war files, but can help you with the logic.
You can modify the logonpage.jsp. So, instead of creating another jsp for new url, implement the logic in the same jsp. I mean,
<%
if (/irj/portal)
then {
%>
<html>
-- - -
-- - -
</html>
<%}
else {
%>
<html>
-- - -
-- - -
</html>
<%}%>
If you have same framework, then this will do. Or else, you can segregate that on the group, via master rule collection.
Regards,
Atul
Hi,
Kindly check the below blog,that may help you.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5124
Regards,
Kiruthika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the reply, but I am not able to find any link for the solution there. Where exactly I have to see in that link, and more over I am working in CE 7.3 and there is no par file rather we have to modify war file there.
please help in how exactly I have to do this in Ce 7.3 logon page.
Hi Guru,
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5124
Can somebody give me the exact link to the above solution , solution link is missing in the above blog.
I am not able to see any link in the link : http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5124
Kindly help.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.