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 help.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "help.." Watch "help.." New topic
Author

help..

Amit Trivedi
Greenhorn

Joined: Feb 04, 2001
Posts: 25
hi all
i have
1. downloaded jakarta-tomcat3.2.1
2. i have made a simple servlet program and an html file to call that program
2. i start tomcat with startup command
3. now i called html file i made by http://localhost:8080/examples/servlets/myhtml.html . this works
But when i want to call the servlet file through this html file it gives 404 error.
i have not downloaded any web server and i was doing this on internet explorer. so do u have to download some more software(web server ) if u want servlet to run.
i tried keeping my .class file in web-inf directory but failed.
where am i going wrong. please guide me.
thanx
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11862
Can you execute the Tomcat examples?
Study the way the class and html files are organized for the Tomcat examples.

Java Resources at www.wbrogden.com
Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Place your .class files in
<tomcat_home>/webapps/root/web-inf/classes
Place your .html files in
<tomcat_home>/webapps/root
Now try to call the file using:
http://localhost:8080/htmlfile
This worked for me !!
bye,
Tualha Khan


SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Amit Trivedi
Greenhorn

Joined: Feb 04, 2001
Posts: 25
Thanx all
now problem has been solved
 
 
subject: help..
 
Threads others viewed
tomcat & servlet
how to start servelets
How to test my servlet
Cant find servlet in J2EE Server.help!
SOS
MyEclipse, The Clear Choice