cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Login Page Customization

chander_kararia4
Contributor
0 Kudos

Hello All,

I am customizing my portal login page. I am following the below mentioned blog.

[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11840%3Fpage%3Dlast%26x-maxdepth%3D0] [original link is broken];

Here in the blog, it is said that to get the login page like google, I need to copy the code from google page to umLogonPage.jsp .

Modifications I done in google code:-

- I deleted all the left side information text.

- Gmail image is changed by my company logo.

- Only the top & bottom blue colors templates are kept & the login block i.e. User Name, Password & Submit button.

Problem:-

1. What all more changes in Gmail code I need to do to make it work for my portal?

2. Except umLogonPage.jsp, in which other file I need to make any changes & What will be the changes?

Regards

Chander Kararia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Chander,

You no need to change any .jsp file. Modify your umLogonTopArea.txt and umLogonBotArea.txt.

Regards

Ponnusamy

chander_kararia4
Contributor
0 Kudos

Hello Ponnusamy,

Can you explain what I exactly need to change in these 2 files?

& what these files are exactly for?

Regards

Chander Kararia

Former Member
0 Kudos

Hello Chander,

Have a look at the following Blog regarding the files that were mentioned in the previous post.

I hope this helps you.

Best Wishes,

PG.

chander_kararia4
Contributor
0 Kudos

Hello,

I have already gone through with these blogs but the problem is still there. May be I am missing tricky step.

When I followed these blogs, I am getting the below mentioned error.

*Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

The exception was logged. Inform your system administrator..

See the details for the exception ID in the log file*

Please suggest what should be done.

Regards

Chander Kararia

Former Member
0 Kudos

Hi,

I think u have made some mistakes in coding.

plz post the error log which u r getting.

Dont try to change all the jsp and txt files at same time.

It will be difficult to find out the mistakes.

Try to change one by one and check the output..

John

Former Member
0 Kudos

Hi,

The Blogs mentioned in PG's thread deals with all scenarios about portal cusomization.

First of all try to download the par file and add 1. com.sap.portal.runtime.logon_api.jar

2. umelogonbase.jar lib files. Build and export the par file without making any changes to esure you are not missing anything.

Now you can sit and modify umLogonPage.jsp and the two text files. If you go through the file you can find the two txt page included in jsp page above and below.

(If you copy jsp into another notepad and replce the include jsp code with corresponding text , you will get a clear picture of the entire logon page.)

The code inside the form tag is the core area in this logon page.

If you have to include any mime object please object and use path like src= "<%=webpath%>js/sample.js".

Regards

Baby

chander_kararia4
Contributor
0 Kudos

Hello Baby,

As you said, I downloaded par file. Imported it to the NWDS. Now, I checked, both the jars you mentioned were not there. So, I added them as External Jars to the project.

I created the project with the name com.sap.newlogon, so my par file name is com.sap.newlogon.par

Please Note that there is no change in the jsp or any other file. I kept them as they are.

I checked the par file in the portal, it got deployed successfully.

Now, I have made the changes in the xml file & in the Config Tool as mentioned.

I restarted all the instances of the server.

BUT, Still I am getting the same exception as mentioned earlier. Please suggest what should be done next.

Regards

Chander Kararia

Former Member
0 Kudos

Hi,

Before changing config files have you tried to run from NWDS. Go to portalapp.xml file in your project and run the application.

Regards

Baby

chander_kararia4
Contributor
0 Kudos

Hello Baby,

I tried to run the application from the NWDS xml file. It did not run.

FYI.. I am having 5 components there namely, default, certlogon, basicauthentication, header and anonymous. I tried all the components to RUN them. I am getting the exception for all.

When I checked the exception log, it is having no information.

BUT, when I try to open the portal, it throws exception & after reading the log file, it says that "An error occurred during authscheme computation"

Suggest what should be done.

Regards

Chander Kararia

Former Member
0 Kudos

Hi,

You added the lib jar files as external jar file isn't?.

Pls try to drag and drop the jar files in to portal-inf - lib folder and try to run from NWDS.

You can drag and drop if you open the project folder in Navigator Explorer window.

Regards

Baby

chander_kararia4
Contributor
0 Kudos

Hi,

I tried it. But still the same.

What should I do now?

Regards

Chander

Former Member
0 Kudos

Hi,

just rename the old backup file as newlogon(similar to the xml file you have given in configtool) and deploy it again.

Regards

ponnusamy

chander_kararia4
Contributor
0 Kudos

Hi

Didn't got your point.

Regards

Chander

chander_kararia4
Contributor
0 Kudos

Hi Baby,

I done the fresh import. created a new par file & uploaded/deployed it to the portal.

Then, I made the changes in the Authscheme.xml file & saved it with another name & uploaded it.

Then I made the changes in Config tool also.

When I started the portal again, I was able to see the login page.

IN THIS I DO NOT MADE ANY CHANGES, EXCEPT THE NEW PAR NAME.

-


Now, I tried to change only the "Welcome" text on the portal screen. I unzipped the umelogonbase.jar file & in that I updated the LogonLables.properties file. (instead of welcome, I made it welcome to portal)

Now I created the jar file using the zip program. (I simply selected all the files, right clicked, select-> Add to Archive. A window opened. By default It showed the name as umeLogonbase.jar.zip. I deleted the .zip part from the name & clicked on Ok. This is the way how I created a new jar file using zip program )

I added the jar file under lib folder & re deployed the application. Now, I am getting the exception instead of Portal Login page.

-


I suppose, there could be problem in making the jar file. Please suggest the best / correct way of creating the jar file. or

Is there any other reason for the exception.

Regards

Chander Kararia

Former Member
0 Kudos

Hi,

Try to use WinRAR to edit jar file. No need to unzip the jar file. Just browse and edit the file.

Pls edit logonLabels_en.properties file, if it is not working with logonLabels.properties.

Regards

Baby

Edited by: Baby on Mar 9, 2009 1:30 PM

former_member205624
Contributor
0 Kudos

Hi Chander,

Have you try to replace the .properties file using WinZip utilities means modify the .properties file locally

and replace the original .properties file with modifyed one, and Deply the .par using system admin.

In this way no need to create the .jar.

Regards,

Answers (3)

Answers (3)

Former Member
0 Kudos

I use this to get the server - node:


String node = "";
Enumeration props = System.getProperties().keys();

while (props.hasMoreElements()) {
  String thisProp = props.nextElement().toString();

  if (thisProp.startsWith("dsr.") && thisProp.endsWith(".buffersize")) {
    node = thisProp.substring(5 + thisProp.indexOf("_" + SID + "_"), thisProp.indexOf(".buffersize"));
      if (node != null) {
        String cluster = node.substring(0, 6) + "00";
        node = node.substring(0, 8);
      }
  }
}

Hope it helps

Johannes

former_member205624
Contributor
0 Kudos

Hi Chander,

I have a simple solution for your problem.

I hope so far you are familer with .jsp file for logon screen.

Create imges of google like front page and put it as a background image in portal logon screen.

Move the table containg lables and input fields of logon screen.

Change the captions and size as per your requirement.

This is tested way of customizing logon screen.

If you require more information then just let me know.

Regards,

former_member206159
Active Contributor
0 Kudos

Hi,

Please check the blogs by Kai Unewisse about 'portal customization'

Below is the starting blog. You can get the rest of the blogs by searching.

Portal Customizations Intro - Login Part 1

Raghu