jsp VS Servlet

Thats very broad question you asked. Its good to use jsp and servlet togethere. So, just create a form in jsp and get those data in servlet.
e.g. // test.jsp
// whatever data we seding the form data to a servlet called "MyServlet" for further processing
<form name = "form1" method = "POST" action = "MyServlet">
Name:<input type = "text" name = "name">
<br>
<input type = "submit" value = "submit">
</form>