Anyone else? All suggestions are welcome and appreciated
Thanks, mb
Duck-Jin Chun wrote:
I'm not familiar with that book or the examples... but try:
<FORM ACTION="/examples/servlet/ThreeParams">Note the "/" at the begining of the action. This makes an absolute
reference... otherwise, your reference is relative.hope it helps,
-Duck-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 15, 2000 5:23 PM
To: tomcat mailing list
Subject: my html <FORM ACTION= > can't find my servletI 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=j
imbo¶m3=janiesueBut 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/ThreeParamsWhen 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
