Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error 404

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have javawebserver2.0 in my system. Just I wrote my first servlet program and stored it in public_html directory.
My class file location is - ..public_html\prgs\HW.class
I try to run it in my browser, I got file not found - 404 error.
Tried with URL : "http://localhost:8080/servlet/prgs/HW"
Can anyone help me to solve this problem? I could run other examples in my browser. I think this problem is not uncommon.
Thanks in Advance.
JKP.
 
neeraj
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have place the servlet class in javawebserver/servlets directory.
You can access the servlet by giving the URL as
http://localhost:8080/servlet/filename
Eg:- http://Neeraj:8080/servlet/Stock
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Neeraj. It works.
JKP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic