I would like to call doPost() method of a servlet from <a href>, but it calls doGet() method. How can I call to doPost() method?
This is my code.
<ul class="nav navbar-nav navbar-right">
<li><a href="newAdmin" ><span class="glyphicon glyphicon-user"></span> New Admin</a></li>
<li><a href="index.jsp"><span class="glyphicon glyphicon-log-out"></span> LogOut</a></li>
</ul>
newAdmin is the url pattern of my servlet and I would like to call doPost() of that servlet. How can I achieve this?