Hi,
Just found this forum while searching for a solution to my problem. Please bear with the newbie question. I've just started to learn servlets and have been trying to run my first using J2EE server.
I have installed on my Win 98 platform: Sun's JDK1.3 and J2SDKEE1.3. The server runs without any apparant errors. I am learning the basics of this technology by trying to create an HTML page that should communicate, via the HTTP POST method, with a servlet. The HTML page and the (http) servlet are the only components to be developed. There is no EJB component. I wrote the servlet code and also the HTML page and was able to use deploytool to package the required war file and the web.xml file. I can access the web page through the server but when I submit the POST request to the servlet I get a blank page instead of the test message text that the servlet should return. As happened with the poster of
this message, no errors/"something wrong" messages are being logged.
When viewed, the source of the blank page has a generic code with nothing between the <BODY></BODY> tags. When I change the POST request to a GET request, recompile and redeploy, I get the HTTP 404 file not found error page.
Have searched fairly exhausitvely for leads on this but even the documentation seems to be silent on this one (though I'm sure the solution must be quite basic!)
Would greatly appreciate any input from you. I can post code snippets if that would be useful, although the servlet is pretty basic receiving a parameter name-value combination and returning a message text through the PrintWriter response.
Thanks,
B Sahai