identifying which check boxes are selected using JAVA ( jsp)

What are JSF, Servlet and JSP and what is difference between them?

How to avoid Java Code in JSP-Files?