I am having a concern regarding the Form Based authentication in
Java. I need to restrict the access of
jsp pages to the user, until and unless he logs in. This is the code for that;
<web-resource-collection>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>
I have jsp pages in a folder called jsp, images in a folder called images and the css in the folder of css. When I apply the above restriction then the pages are not accessed and automatically it is redirected to the login page. This is the correct behavior that I want but the only issue is that my images and css also don't load. Hence my login page appears without css and images. Any help would be appreciated.