tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julio Serje (@canada.com)" <jse...@home.com>
Subject Re: my html <FORM ACTION= > can't find my servlet
Date Tue, 19 Dec 2000 04:05:38 GMT
Try:

<FORM ACTION="/examples/servlet/ThreeParams" Method="get">
.
<input type="text" name="param1" value="bubba">
<input
<input
.
.
</form>


I'm assuming that you have the three fields in your form coresponding to the
three parameters, and that you are implementing the doGet method in your
servlet.

Julio


----- Original Message -----
From: Mark Koscak <        >
To: <tomcat-user@jakarta.apache.org>
Sent: Sunday, December 17, 2000 5:09 PM
Subject: Re: my html <FORM ACTION= > can't find my servlet


> I have encountered a similar problem.
>
> In my case I think it is because I have NOT integrated Apache with
> Jakarta-Tomcat. Therefore Apache would be unable to resolve the relative
> pathnames.
>
> Mark.
>
> ----- Original Message -----
> From: <>
> To: tomcat mailing list <tomcat-user@jakarta.apache.org>
> Sent: Saturday, December 16, 2000 9:23 AM
> 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=jimbo
> &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