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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -