cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Login application, Authenticating the users.

Former Member
0 Kudos

Hi All,

I need to develop a webdynpro java application for login welcome screen.

How can i create this application? how to autheticate the users while logging into the application.

Regards

Sireesha.

Accepted Solutions (0)

Answers (4)

Answers (4)

p_2_5_6_9_6_0
Active Participant
0 Kudos

Hi,

Creating a Login page is simple enough in Dynpro Java and JSP.

For Dnypro: Create a View with the required Login UI Elements. Then on the click of the button (Submit) - please call a method that used the code from the second post in this Thread. That will allow you to get the current Portal user.

To use the code you will have to add the security jars for Portal to your Web dynpro Project.

For JSP: Create a Web Module project and then create the page in a way similar to the above. However you will need to write your own validation code in a JAvascript or Java method by taking the password and verifying it against the database.

Hope that helps.

Thanks.

p256960

Former Member
0 Kudos

Hi,

Do you want to have your login page in WD itself because you can have jsp page and use form based authentication for your application.

Regards,

Murtuza

Former Member
0 Kudos

Hi,

Yes. I want to create a login page in WD itself. It will have User ID, password as input , Login as input,

And New User as link ...

This is what actually i am trying to do ....

Regards

Sireesha.

Former Member
0 Kudos

Hi,

Use the below code

IWDClientUser clientUser = WDClientUser.getCurrentUser();*
 
*clientUser.getClientUserID();//For User ID*
*clientUser.getFirstName() //For First Name*
*clientUser.getLastName()//For LastName*
*clientUser.getTitle()//For Title

Regards

Padma N

yogesh_galphade
Contributor
0 Kudos

Hi

Put this code in view - wdinit

IWDClientUser user = WDClientUser.getLoggedInClientUser();

IUser epuser = user.getSAPUser();

portalUser = epuser.getUniqueName();