0

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

Ori Marko
  • 56,308
  • 23
  • 131
  • 233

1 Answers1

0

Change if to:

if("S".equals(user.getUsrInd())) 
Ori Marko
  • 56,308
  • 23
  • 131
  • 233