You are here

pulling middle name

Submitted by amoverall on Thu, 09/24/2015 - 16:30

I am trying to pull a student's middle name but having some trouble. Can anyone confirm that the below code looks correct?

Thanks so much for any help!

if (WebUtil.checkRequest( request, response )) {
byte[] sessionId = WebUtil.getUserSession( request, response );
PersonManager_3 pm = (PersonManager_3) BomManagerFactory.getManager( PersonManager_3.ID);
Person_3 currentUser = pm.getCurrentPerson();
username = currentUser.getLogin();
firstname = currentUser.getFirstName();
lastname = currentUser.getLastName();
middlename = currentUser.getMiddleName();


Luminis Version: