Java EE - Show page based on internal business logic
问题 I'm implementing an enterprise application with Java EE on Glassfish server. I need to my application to execute some logic to show the proper output for a specific subset of URLs. Problem description: My web pages folder has this structure: Web Pages Protected - CorrectPage.xhtml - A.xhtml - B.xhtml - Index.xhtml I want the user to access the URL: /Protected/CorrectPage.xhtml But the user must not be able to access the following URLs: /Protected/A.xhtml /Protected/B.xhtml When the URL