It's a directory problem.
Following Marty Hall's Core
Servlets Vol 1 Chapter 4.
1. I create an HTML form C:\apache-tomcat-6.0.18\webapps\ROOT\ThreeParametersForm.html
containing <form action="/servlet/coreservlets.GetParameters" method="get">
and display it OK using
http://localhost/ThreeParametersForm.html.
2. Enter data and submit and the servlet (package coreservlets ;)
C:\apache-tomcat-6.0.18\webapps\ROOT\WEB-INF\classes\coreservlets\GetParameters.class
Also displays OK.
But I don't want to use the ROOT directory , I want to use GBJSP :
C:\apache-tomcat-6.0.18\webapps\
GBJSP\ThreeParametersForm.html
http://localhost/GBJSP/ThreeParametersForm.html.
<form action="/
GBJSP/coreservlets.GetParameters" method="get">
Displays OK
And servlet :
C:\apache-tomcat-6.0.18\webapps\
GBJSP\WEB-INF\classes\coreservlets\GetParameters.class
Submit data and HTTP status 404 - /GBJSP/coreservlets.getParameters
Requested resource is not available.
Thank you