I'm trying to find a way to provide a correct entry page in Jersey. A login page when there is no user logged in, otherwise I should display another home page that will call RESTful services developed with Jersey and that will change the home page interface when a user is logged in.
Below the configuration of the file web.xml
:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>login.html</welcome-file>
</welcome-file-list>
Any solution is valid as long as you use the web.xml
setting to make it easier. I do not find it convenient to have to create a service to return each of these pages.