I want to hide Signup and Login buttons on every page after user logs in and show only logout, and after logging out there should be those previous buttons signup and login. I'm using Eclipse
How to disable html controls after a user logins in jsp is the best one I've found but it's not working. Why?
<ul><li><h1 style="font-size:40px">Car Care</h1></li></ul></a>
</div>
</div>
<ul>
<li><a href="Home.jsp">Home</a></li>
<li><a href="Aboutus.jsp">About Us</a></li>
<li><a href="Services.jsp">Services</a></li>
<li><a href="Branches.jsp">Locations</a></li>
<li><a href="#">Promotions</a></li>
<li><a href="Getintouch.jsp">Get in Touch</a></li>
</ul>
</div>
</div>
<div class="navigation-bar1">
<div id="navigation-container1">
<ul>
<li><a href="Signup.jsp">Sign Up</a></li>
<li><a href="Signin.jsp">Already A Member? Sign In</a></li>
</ul>
</div>
</div>
<header>
<div class="main">
<div class="backp1">
<img src="${pageContext.request.contextPath}/img/<%="login.png" %>"
name="uimage" id="uimage"/>
</div>
<div id="tableContainer-1">
<div id="tableContainer-2">
<form name="signin" method="post" action="LoginServlet">
<table id="myTable">
<hr>
<caption><h3>Login</h3></caption>
<p text align="center">Sign In With Your Details</p>
<tr>
<td>Username</td>
<td><input type="text" placeholder="Username" name="Uname"
id="suname" required/></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" placeholder="Password
"name="Password" id="spassword" required/></td>
</tr>
<tr>
<td><button type="reset" class="resetbtn"
value="reset">Reset</button>
<td><button type="submit" class="signinbtn" value="Sign Up"
name="submit" id="submit">Login</button></td>
</tr>
</table>
</form>
</div>
</div>
</tr>
</table>
This is my list and sign in.