Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
- 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
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started