[英]I have one jsp. I am trying to hide menu item in jsp based on user login
I am trying to hide menu item in jsp based on user.getUsrInd()
我试图基于user.getUsrInd()
在jsp中隐藏菜单项
<div class="dropdown">
<li class="dropbtn">Perofrmance</li>
<div class="dropdown-content">
<a href="team.jsp">My Performance</a>
<%if(user.getUsrInd()=="S") %>
<a href="team.jsp">Rate</a>
</div>
</div>
but whatever may be the user_ind the menu item is getting hided, even if value is S 但无论user_ind是什么,菜单项都会被隐藏,即使value为S
更改为:
if("S".equals(user.getUsrInd()))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.