You can design form via <form> in html . You can call servlet via Ajax once submit button clicked. Prepare Java code for database connection and related logic.
we need to decide first the criteria for the most popular. Like most_visited_count in page properties so we can fetch and display data according to criteria.