I am trying to create a servlet that displays a simple form with checkboxes , when the user selects the number of checkboxes he wants and clicks on a \"confirm\" the POST re
<%@ page language="java"%>
JSP Multiple Checkbox
<%String fruits[]= request.getParameterValues("fruit");
if(fruits != null){%>
I likes fruit/s mostly
<%for(int i=0; i
- <%=fruits[i]%>
<%}%>
<%}%>
Run this sample jsp on your web container to get some basic idea on how it works. You need to move the display logic on this page that gets request parameter into your servlet code on form submission. This example can be found from here. Hope this would help.