JSP用户在Web基础应用程序中的身份验证 [英] JSP user Authentication in a web base application

查看:76
本文介绍了JSP用户在Web基础应用程序中的身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用jsp在Java中创建了一个小的webapp,我对登录验证有一点问题..



我有4个不同的用户。在jsp页面中有4个选项卡



i需要给予他们对Tabs的有限访问权限。



例如-director(可以看到所有选项卡)官员1(可以看到只有3个选项卡的访问权限)官2(可以看到只有2个选项卡的访问权限)官3(只能访问1个选项卡)



它就像一个安全许可我尝试了很多方法而且失败了,我正在考虑将布尔值传递给数据库并为我需要的访问级别提供一个帮助,如果它是一个小样本日志在项目中将非常有帮助我



,如果它可以做到EER也可以没关系

解决方案

简单

将用户存储到标签地图

获取当前用户的地图并检查哪个标签显示

have made a little webapp in Java using jsp and am having a little problem with Login Authentication..

i have 4 different users. have 4 tabs in a jsp page

i need to give them the limited access to Tabs.

eg-director (can see all the tabs) officer 1 (can see only have accesses to 3 of tabs ) officer 2 (can see only have accesses to 2 of tabs ) officer 3 (can see only have accesses to 1 of tabs )

it is like a security clearance i tried to so many ways and failed and i am thinking to do that with passing a Boolean to Database and give the access levels for that i need a help if it is with a small sample log in project that will be very help full for me

if it can do with the EER also it ill be ok

解决方案

simple
store the user to tab map
get the map of current user and check which tab will show


这篇关于JSP用户在Web基础应用程序中的身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆