I am trying to hide menu item in jsp based on user.getUsrInd()
<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
更改为:
if("S".equals(user.getUsrInd()))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.