The moose likes Servlets and the fly likes running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "running" Watch "running" New topic



Joined: May 06, 2001
Posts: 10
i wrote a servlet to print "hi".
it is running well.
but if i put that servlet in a package p;
and try to run that 404 error is coming.
what should we do?
help needed
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
You have to call the servlet in this way.
Where AMSServlet is under "a.b.c" package. In other words, the first noncomment java code inside is package a.b.c;
maha anna
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: running
It's not a secret anymore!