Link to home
Start Free TrialLog in
Avatar of srikanthradix
srikanthradixFlag for United States of America

asked on

how to get user firstname and lastname fields to be filled automatically

Hi,
I have a login.jsp page, in that username and password are submitted. After that, i have a new jsp, that contains a link to process.jsp.
In that, i have fields like firstname, lastname,date. I need these tobe filled automatically for the user logged in. How to  get the firstname and lastname  and system current date to be filled automatically? please suggest me.
Thanks
Avatar of aman123_123
aman123_123

Didnt get your question. Please explain in detail.
Avatar of srikanthradix

ASKER

After user submits the the login.jsp page, he enters into a new jsp , which has fields like, firstname, lastname and date,etc....
i need to fill the fields automatically for the user( depending on the user logged in name ). I am not sure. i may have to use ,
wp.user.api.puma library, to get the username loggedin .
So ,
in puma library, there is method called,
com.ibm.wps.puma.User user = (com.ibm.wps.puma.User)request.getAttribute("com.ibm.portal.puma.request-user");
      UserLogin = user.getFullName();

Like this.  from this i can get the fullname. but how to get the firstname and lastname?
How to populate the date field with current system date?

ASKER CERTIFIED SOLUTION
Avatar of booktopia
booktopia

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks, actually i am asking whether we can do anything with puma library..still this works for now... thanks