• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing of html and jsp using tomcat 5.0.16

 
nash avin
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I went through the article http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Test-Server step by step and did what it had to say using tomcat 5.0.16.
I have put the Hello.html and Hello.jsp files (from this web site) in a folder called Trialweb.
I can access the Tomcat server with http://localhost (operating on port 80),so no http://localhost:8080.
I can access the page Hello.jsp(It shows the current date and time) using this http://localhost/TrialWeb/Hello.jsp.
My question is that I cannot access http://localhost/Trialweb/Hello.html.Both the files are in the same directory.
It gives the following error. (on the browser)
"HTTP Status 404 - /Trialweb/Hello.html"
Description:"The requested resource (/Trialweb/Hello.html) is not available."
Kindly help me through this.
Thanks
nash
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.html has not been renamed to hello.htm or hello.html.txt ?
 
nash avin
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
thanks for the reply,hello.html is not renamed it still shows hello.html in the properties listing.Dont know what the problem is.
thanks
nash
 
nash avin
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Thanks for the lead,I did rename the file again just in case using notepad and the Hello.html did work.
Thanks again
Nash
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic