tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Braden <mbra...@utenzi.com>
Subject RE: simple servlet setup question
Date Wed, 28 Feb 2001 21:50:50 GMT
Try this:

>The html file is in the jakarta-tomcat\webapps\extranet
>directory, and the ExtranetServlet.class file is in the
>jakarta-tomcat\webapps\extranet\classes directory,

action="servlet/ExtranetServlet"

The default for a webapps is that servlet classes are placed
webapps/myweb/WEB-INF/classes
and are called by servlet/myServlet or
http://myserver/myweb/servlet/myServlet

Remember to leave off the slash on the end.

--
Mike Braden
mbraden@utenzi.com


-----Original Message-----
From: Sean Hall [mailto:vuluv@hotmail.com]
Sent: Wednesday, February 28, 2001 4:35 PM
To: tomcat-user@jakarta.apache.org
Subject: simple servlet setup question


Hello -
I just installed Tomcat and am trying to set up a really
simple example using a servlet to process input from an
html form, but for some reason the servlet isn't being
found.  I specify which servlet the form is submitted to
in the html file with this line:

<form name="LoginExtranet" method="POST" action="ExtranetServlet">

The html file is in the jakarta-tomcat\webapps\extranet
directory, and the ExtranetServlet.class file is in the
jakarta-tomcat\webapps\extranet\classes directory, but
for some reason I get "404 file not found" instead.  Any
suggestions on where I should put the servlet so that it
is seen?

Also, I have System.out.println() calls in the init() method
of the servlet.  Where should this be output?  to the ms-dos
command prompt window or to one of the logs?  I don't see it
anywhere and init() should be invoked when tomcat is start,
correct?

Thanks so much for any help
Sean
sean@reprogram.org
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message