File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes problem in calling servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem in calling servlet" Watch "problem in calling servlet" New topic
Author

problem in calling servlet

gaurav chhabra
Ranch Hand

Joined: Jul 24, 2004
Posts: 109
sir
i am new to servlet and using JSDK2.0 with SUN APPLICATION SERVER.
i want to call the servlet from HTML page , i m writing
http:\\localhost:8080\servlet\firstservlet

and when i m calling by running through browser then it is
giving the error number 404.

please help me.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The use of a URL containing /servlet/ is what is causing you trouble. Read this FAQ on the invoker servlet.
Bill
Divij Mahajan
Greenhorn

Joined: Jul 26, 2004
Posts: 8
Hey Gaurav


Can you post the part of your web.xml that contains the servlet and servlet-mapping elements. and also the path where you have your servlet stored.

Maybe one of these is the cause.


-Divij<br />---------------------------------<br />Weinberg's Law: If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
Navin Ramineni
Greenhorn

Joined: Jul 28, 2004
Posts: 3
Also check if your firstservlet.class is in WEB-INF\classes directory
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in calling servlet
 
Similar Threads
mouseOver problem in Mozilla FireFox.... working fine in IE
jsp bean problem
EJB and Socket write error
problem in form action tag
HTTP Status 404