java - Redirection Module in a JSP/Servlet web application -
well, need creating redirection module java web application. based on jsp/servlets.
functionalities of module:
- if user enters link of webpage , user isn't logged in, app should ask user login first , redirect user specified link.
i have achieved functionality, done storing links in session, overhead codes on each jsp pages, kind of unmanaged. suggest ideas or apis useful in creating such module.
you should take @ jaas, java athentication , authorization service. service container (tomcat, wildfly, ...) provides you, , abstracts concern, application doesn't needs implement security model scratch.
you can find reference guide here.
Comments
Post a Comment