tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@sprintmail.com
Subject Re: my html <FORM ACTION= > can't find my servlet
Date Wed, 20 Dec 2000 03:54:48 GMT
Thanks for the suggestion, but Netscape still can't find my servlet.

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: meb@sprintmail.com [mailto:meb@sprintmail.com]
> Sent: Friday, December 15, 2000 5:23 PM
> To: tomcat mailing list
> Subject: my html <FORM ACTION= > can't find my servlet
>
> 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&param2=j
> imbo&param3=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

Mime
View raw message