I'm trying to pass a value input to a textbox in a JSP page to a servlet that will store the value as a variable. But when I click the submit button the servlet isn't found. I get an error stating the requested resource is not available
Servlet Class:
//parse input from hello.jsp input box
//and assign to fibNum variable
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
}
}
I've looked at some questions like this: <form action="/sampleServlet" giving me exception but changing the path didn't change the outcome.
Does anyone know how to fix this problem calling of a servlet? Or is there a step I'm missing in linking up the servlet?
Also this is the structure of my project tree: