This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
web.xml error-page problem
browser shows code
having someone else access my servlet..
calling external servlet from my servlet
connection refused on tomcat web server