Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Can't get simple servlet to work
On Fri, 10 Jan 2003 15:38:57 +0000, Peter Chatterton wrote:
> UPDATE > I just tried: > http://localhost/servlet/xmlagency.XAGServlet/ > and it doesn't work either. > > "Peter Chatterton" <peter_at_chatterton.name> wrote in message > news:dUFT9.5628$IC6.567383_at_news20.bellglobal.com...>> and I copied it to the same dir that IsItWorking is in.
>> I created a servlet similar to IsItWorking as follow:
>> package xmlagency;
>> import ch06.*;
>> import java.io.*;
>> import javax.servlet.*;
>> import javax.servlet.http.*;
>> public class XAGServlet extends HttpServlet {
>> public static final String TITLE = "Yes, It's working!";
>> public void service (HttpServletRequest request,
> HttpServletResponse
>> response)
>> throws ServletException, IOException
>> and the rest is unchanged.
I think what you want to do is create a directory called xmlagency in the directory where your servlets are supposed to go. Then put your class file in that directory.
Oh, you are using jserv. Sorry, I forgot how they do it, but still, figure out where the servlets go and create the directory structure.
Or try not using a package statement in your servlet, then dump the class where IsItWorking.class resides.
Since it is Jserv you may need to restart JServ, although I am a bit rusty on JServ.
Cheers,
dmz17 Received on Fri Jan 10 2003 - 14:55:05 CST
![]() |
![]() |