I am working on the "Three Parameters" servlet in Marty Hall's book
(p.69) and the servlet is working great when I call it from the
"Location" line of the browser such as:
http://localhost:8080/examples/servlet/ThreeParams?param1=bubba¶m2=jimbo¶m3=janiesue
But I can't find the secret code to put in the ACTION argument of the
FORM tag. The book recommends :
<FORM ACTION="servlets/coreservlets.ThreeParams"> which I tried
unsuccessfully. (Netscape gives me a variety of "unable to find
directory or file" messages) Then I removed the package statements and
re-compiled with them in the base directory where I found the working
examples:
C:\\tomcat\webapps\examples\WEB-INF\classes
I've tried all these variations, with forward and back slashes, and
with/without double quote marks and with/without leading slashes:
ThreeParams
servlets/ThreeParams
examples/servlets/ThreeParams
When I used "ThreeParams", Netscape said it couldn't find file or
directory C:\\tomcat\webapps\examples\WEB-INF\classes, which would have
been the correct directory. I tried "ThreeParams.class" and it produced
the correct line at the location line of the browser, but the output was
garbled, strange characters, etc.
Any suggestions would be appreciated. Thanks.
Michael Brubaker, Java Developer Wannabe, Orlando, Florida
Win98/Tomcat 3.2.1/JDK1.3/Netscape 4.75