Check out example codes for ""assuming the servlet is configured properly"". It will help you in understanding the concepts better.

Code Example 1

Given following form:
<form action="">
  <input type="text" name="Name">
  <input type="submit" value="Save"> 

and a servlet code:
public class RegisterServlet extends HttpServlet{
  pulic void doPost(HttpServletRequest req, HttpServletResponse res) {
  // registration logic goes here

With the above code, assuming the servlet is configured properly and registration logic works good, trying to register user fails. 
Choose one reason.

Learn ReactJs, React Native from