In the previous exercise we saw that the page we added was visible to us as soon as we deployed the code to the server but this is not exactly what we wanted, we dont want that any user can access our page , OUr requirement is that only authenticated user should be able to see that page.In order to make the changes we just need to modify the security configuration for the page.
Go to your pages.xml
Select the HelloWorld page where you wanted to apply the security
Select Delegate Security and un select the view as shown below
Save the changes.
Once you will save it you will find a lock icon in the HelloWorld Page
Go ahead and deploy your page to the integrated server.
You will find that the page that you have added is not visible in the portal
The reason is we have changed the security access for the page so only autheticated user can access tha page.
So let login using the default user and password (weblogic/welcome1)
and once logged in you will find your page in the portal
No comments:
Post a Comment