Hello, in this video we need to display the current logged in user and implement the logout action. So once the user successfully log into the page to the system, he should see his name here. So here is the login bean we store the information in the session scope we can display Brentsville name here to be here and this is right as well the look out action the start was look out action so and that bitch template you can search for look out so this is a look out okay So in the loop our action ID, we can select any template we can go with a login bean. And we can write Look how it action. So control risk Look how to go here. So here's this is a look out action.
Okay, I copied the code here. So it's Moses. I will embed Java. We will import phase one ticket service phase tickets and HTTP session. So excessively HTTP okay. So it will take the physician and infinity is a session after it invalidates a session, it will return to the index which will take you back to the login page.
Okay, so this is a look with action, we need to display the user name. So here's the user name is a session scope to choose a name, we can right change it to principal name. So, we can sit session scope to principle name. So, the value was the principal name key in decision school value will come after the user successfully look at. So let us now try to run the application and see How it will looks like so that is strong. Okay so let us login correctly to the system.
Here you will find the user admin appeared here and once you open it here to look at it, it will take you out to the login page see again if your login and even if you take this URL if you open a new tab here you will be okay login because you are still in a session. But if you look at it and try to paste it again here, you will be go to the login screen because it is invalidate the session. So now the user has to log in again to the system so By this video now, we complete developing a complete EDF application. It is looks similar application but at least you get an idea how you can create a develop ADF application, how you can use some graph component, how you navigate between pages how you can apply a custom security, how you can apply for search working with a business component we'll be working with a phases component.
You could target now a good idea about how you can create and develop ATF application. Next video I will show you how you can deploy this application in to the WebLogic I will just give you like a quick way how you can deploy this into the WebLogic. I will try to create to make another course for you BlueJeans and dickless fish admin and how you can deploy EDF in WebLogic and in ADF, and in glassfish is about action environment. So see you next video