Hello JavaRanch, I dont know if this is the right
thread where I should post my concern, I've been searching the categories, but I think this is the closest.
Anyway, I'm a total beginner in Spring MVC development, so I'm having a little struggle deploying my simple web-app. Please bare with me..
The thing in here is, I cannot see why my result(result.jsp) page doesn't load after I press the submit button on my first page(Student.html)
here are the codes for my simple program.
The controller class (StudentController)
the Student class
the student.jsp
the result.jsp
the
servlet (HelloStudent-servlet)
and finally the web.xml
so far I can successfully load the first page (student.html)
as
http://localhost:8080/HelloStudent/student.html (just to show the URL)
but as I press the submit button, I always get Error 404
and the url displays as
http://localhost:8080/HelloStudent/addStudent (here i expect the result.html)
I wonder what conflicts my POST method in my controller class has with my result.jsp page or any codes in my project.
Please bare with me, I'm really new to Spring Development, I just finished a tutorial with basic development in swing. Any help would greatly appreciated, thank you. :)
edit Just like to mention, this is a part of the tutorial I found on web. I just learned something with my POST request method
I'm having a hard time finding a very good sample(a working sample in my case) that will show me how to map my form into my POST method that will load my result page..