Answered step by step
Verified Expert Solution
Link Copied!

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

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago