Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help..

 
Amit Trivedi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you execute the Tomcat examples?
Study the way the class and html files are organized for the Tomcat examples.
 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Amit Trivedi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx all
now problem has been solved
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic