Listen All Requests Tomcat
I am using Tomcat with HTML files not jsp or anyting else. Every file is static(they uses JQuery) However when a user 开发者_Python百科wants to navigate from my urls I want to check for authorization and don't want to show pages redirect them if not authorized.
How to implement this?
That is not possible to do with just HTML, you need to make use of some server-side scripting to make the authorization and redirection,,
Otherwise,,
Try using CGI Scripts(Common Gateway Interface)
in apache to authorize the requests,,
Also you can make use of .htaccess
to authorize the users and deny the unauthorized requests,,
A combination of both
.htaccess and CGI
can accomplish the work you need to be done without the Server-side scripting,,
精彩评论