A cordial greeting, I will put you in the context of my question: I have a web form in a jsp, in which I have 2 radiobuttons, when selecting the first one, 2 div appears, and with the second radio an input text appears. When I send them to the servlet, I want to show the data through the form provided by the servlet (which is made out.println), but I do not understand how to print only the data corresponding to the selected radio (Yes I choose the first option that does not show the blank option of the second radio, and vicebersa). I hope I have been clear enough so that it is understood. Thanks for your time.