tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Wilson <web...@yahoo.com>
Subject Re: newbie question.
Date Thu, 20 Jun 2002 14:15:04 GMT
I'm confused by your question, can you narrow your
focus.

It's sounds like you have yet to get a servlet
running.


Place your servlet code in your WEB-INF/classes dir
and compile it there; you will want to have your class
path setup properly for whatever means your are using
to build, e.g. ide, notepad, emacs...etc.

You can call your servlet by prepending your servlet
with <rootWebDirectory>/servlets/<yourServlet>

Servlets are harder to test from the command line
because they require the `servlet container'
environment.  You can add a main method to your
servlet and call main...etc, but you really won't know
for sure how your `servlet' is working with respect to
your container which you really need to know at the
end of the day.

You are better off muscling through getting your
container setup properly to begin with; then your
testing will be more fruitful.

//ed

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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


Mime
View raw message