As we know that in java web application, we write our presentation logic in jsp, using html, css, java script, jsp tags etc. and business
logic in servlet (java code). So html pages can interact with servlet using hyper link or user. User can also navigate from one page to other page using hyper link.
Sending userid and password from hyper link to the servlet :-