Is it possible to link a servlet within a list within a .jsp file ?
<form>
<ul id="nav">
<li class="current"><a href="HomeClientServlet">Home</a></li>
<li><a href="TransactionsServlet">Transactions</a></li>
<li><a href="StartTransferServlet">Transfer</a></li>
</ul>
</form>
The upper code wont work and im not sure how to do this.
*NOTE - The servlet needs to run doPost and not doGet.
As Jigar Joshi said I have tried to do this:
It didnt work and then i tried doing this instead:
<form>
<ul id="nav">
<li class="current"><a href="<%=request.getContextPath()%>/HomeClientServlet">Home</a></li>
<li><a href="<%=request.getContextPath()%>/TransactionsServlet">Transactions</a></li>
<li><a href="<%=request.getContextPath()%>/StartTransferServlet">Transfer</a></li>
</ul>
</form>
This one is invalid
<form>
<ul id="nav">
<li class="current"><form action="<%=request.getContextPath()%>/HomeClientServlet" method="POST"><input type="submit">Home</form></li>
</ul></form>