Hi
All this is true you must stop and start tomcat for servlet class take
effect.
julio oliveira
buenos aires - argentina
-----Mensaje original-----
De: Peter Mickelsson [mailto:peter.mickelsson@a...]
Enviado el: Miércoles, 02 de Enero de 2002 11:03 a.m.
Para: Servlets
Asunto: [servlets] Re: I can't even to load servlet
I really do hope that there is someone who are better than me that read this
and strate things out. But I give it a try.
In my folder "tester" I have a index.html-file. The url to the index.html is
http://localhost:8080/tester/
In the index.html file I have links to my jsp and servlets
for exampel:
<a href="/tester/servlet/MyFirstServlet">my servlet</a>
I have put the servlet in the web-inf/classes folders in my folder "tester".
This wokrs for me. But I had to reboot the server to make the server "read"
the servlet.
/Peter
----- Original Message -----
From: "Least Lee" <cmlee9@i...>
To: "Servlets" <servlets@p...>
Sent: Wednesday, January 02, 2002 1:51 PM
Subject: [servlets] Re: I can't even to load servlet
> Hello,
> i can access the html orignally
> with "http://localhost:8080/testing/index.html"
> but if i move the whole folder under webapps, which url should i try?
> I can't even display html if under webapps, can you help please?
>
> > I have done almost the same thing but I've put my folder "tester"
> directly
> > under webapps. Not in the root-folder. I don't know if it's the correct
> way
> > to do it (probably not) but it works...
> > /Peter
> >
> >
> > ----- Original Message -----
> > From: "Least Lee" <cmlee9@i...>
> > To: "Servlets" <servlets@p...>
> > Sent: Wednesday, January 02, 2002 1:33 PM
> > Subject: [servlets] I can't even to load servlet
> >
> >
> > > i have download jakarta-tomcat-4.0.1 package and install it on
win2000.
> > > After installation, i start tomcat engine.
> > >
> > > it can successfully load http://localhost:8080/index.html.
> > >
> > > But when i use a html to load a servlet, it always report HTTP Status
> > > 404,The requested resource (/servlet/Hello) is not available.
> > >
> > > Can anybody Help??? I have stuck for a whole day!!!Help pls....!
> > >
> > >
> > >
> > > My configuration:
> > > i made a folder under ROOT called 'testing' with a file called
> index.html.
> > >
> > > <html>
> > > <body>
> > > <form method="POST" ACTION="/servlet/Hello" >
> > > <input type="submit" value="submit"></p>
> > > </form>
> > > </body>
> > > </html>
> > >
> > > another Hello.class file under \ROOT\testing\WEB-INF\classes
> > > Hello.java code as belowed.
> > >
> > > import java.io.*;
> > > import javax.servlet.*;
> > > import javax.servlet.http.*;
> > >
> > > public class Hello extends HttpServlet
> > > {
> > > public void doPost(HttpServletRequest req, HttpServletResponse res)
> > > throws ServletException, IOException
> > > {
> > > res.setContentType("text/html");
> > > PrintWriter out = res.getWriter();
> > > out.println("<HTML>");
> > > out.println("servlet here");
> > > out.println("</html>");
> > > }
> > > }
> > >
> > >
> > >
$subst('Email.Unsub').
> >
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com