• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Testing of html and jsp using tomcat 5.0.16

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
We begin by testing your absorbancy by exposing you to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic