GWT web.xml - java ee - login and session -


I want to know that there is no way to provide login support for all web application content. I mean that when a user tries to use a site (static content - html), and it is not logged in or the session expires, then it should be redirected to the login site. To enter, the HTML filter in web.xml is almost what I want, but I also need the authentication of html pages.

  & lt; Filter & gt; & Lt; Filter-name & gt; AuthenticationFilter & lt; / Filter-name & gt; & Lt; Filter range & gt; Example.AuthenticationFilter & lt; / Filter range & gt; & Lt; / Filter & gt; & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; AuthenticationFilter & lt; / Filter-name & gt; & Lt; URL pattern & gt; / * & Lt; / URL pattern & gt; & Lt; / Filter-mapping & gt;   

This does not work with html pages, only the subletting request should be a general mechanism such as not checking for each service service. Thanks for all the Resopnes.

This is the standard web.xml configuration option to define.
You must not have to define a custom filter

View

If your app contains pages for which the user has to authenticate with the data store Is required so that you can enter the web.xml configuration file in the following:

& lt; Security-roles & gt; Defines valid roles in security context.

& lt; Login-config & gt; Defines protocol for authentication, for example form-based or HTTPS.

& lt; Security-lock & gt; Defines the resources specified by URL patterns and HTTP methods that can only be accessed by authorized users or roles.

& lt; Servlet & gt; Defines the servlet providing certification.

& lt; Servlet-mapping & gt; Maps the servlet in the URL pattern.

Authentication defines the filter used to change the content of the request.

& lt; Filter-Mapping & gt; Filter the file extensions used by the application For details about the ADF binding filter, see Configuring ADF Binding Filters.

Comments