Question: Assume that in a Glassfish Application Server we have declared two user groups (Group1 and Group 2) and assume that an application SIS is installed

  1. Assume that in a Glassfish Application Server we have declared two user groups (Group1 and Group 2) and assume that an application SIS is installed in the application server which has two roles, namely Admin and Guest. If we want to map the role Admin to Group1 and the role Guest to Group2, what is the XML code that need to be written in the below given glassfish-web.xml file?

Solution:

glassfish-web.xml

  1. Write the code snippet for defining the navigation rule in the below given faces-config.xml, which will navigate from login.xhtml to dashboard.xhtml when the outcome of the form is login-successful.

Solution:

faces-config.xml

xmlns="http://xmlns.jcp.org/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd">

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!