Can anyone tell me how I can do it using html and servlet.
I designed html page and gave all these three buttons same names but different values. I can fetch a record but i don't know how to pass these values from servlet to html.
How to return to same html page and display records.
Once you have data available in servlet, you can set it as request attributes, and then forward request to JSP, in JSP you can access these data from request attributes using JSP EL and jstl, and generate html markup
Htm/jsp page sends request to servlet. Servlet with the help of helper classes performs the business and data access logics and creates a response. This response is forwarded to a jsp page to produce the output.