Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6121063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:44:28+00:00 2026-05-23T15:44:28+00:00

Currently using: JBoss 6 (Development on GlassFish 3.1), JSF 2.0, form-based authentication with JAAS

  • 0

Currently using: JBoss 6 (Development on GlassFish 3.1), JSF 2.0, form-based authentication with JAAS (no “public” pages, everything needs authentication).

The web application provides two different search pages (like search1.jsf and search2.jsf), accessible from index.jsf, but for users which do not belong to a special role with additional rights, search2.jsf must not be accessible.

The “standard” way to protect search2.jsf would be a configuration in web.xml which requires the special user role for this page. Are there other ways to protect the second search page dynamically, either based on a role or based on user-specific attributes, which do not introduce additional authentication frameworks or container-specific features?

Disabling the link in index.jsf which points to search2.jsf is easy, but users could enter the URL of the second search page in the browser to see it (so for the prototype I will adjust web.xml).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:44:29+00:00Added an answer on May 23, 2026 at 3:44 pm

    Are there other ways to protect the second search page dynamically, either based on a role or based on user-specific attributes, which do not introduce additional authentication frameworks or container-specific features?

    You can use EL in <ui:include>. Create a public master search.xhtml page which includes either search1.xhtml or search2.xhtml depending on the user role.

    E.g.

    <ui:include src="/WEB-INF/search#{request.isUserInRole('admin') ? 1 : 2}.xhtml" />
    

    (Those include files are put in /WEB-INF so that the client cannot request it directly)

    Then open the page by just search.xhtml instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im currently using vs2008 with asp.net mvc framework for web development. Im missing a
I'm currently using jboss/maven/eclipse to debug a web app. I've enabled remote debugging in
Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control. We have licenses for Telerik. I
I'm using the currently latest quartz 1.8.3 on jboss 4.0.5. The quartz jobs are
I'm currently starting out using JBoss Enterprise SOA platform 5.0 (JBoss ESB 4.7, JBoss
I am currently learning Java EE using JBoss and I am kind of stuck
We have jboss logging enabled in our application. Currently we are using the 'Rotating-file-handler'
I am currently running a legacy JSF application on JBoss AS 4.3. I believe
Currently I am using this for JBoss, but I need something also for an
I'm currently using maven war plugin to deploy my war to jboss dir :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.