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="register.do">
  <input type="text" name="Name">
  <input type="submit" value="Save"> 
</form>

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

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 akashmittal.com