This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Testing of html and jsp using tomcat 5.0.16 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Testing of html and jsp using tomcat 5.0.16" Watch "Testing of html and jsp using tomcat 5.0.16" New topic
Author

Testing of html and jsp using tomcat 5.0.16

nash avin
Ranch Hand

Joined: Nov 13, 2003
Posts: 96
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

Joined: Feb 20, 2001
Posts: 3695

Hello.html has not been renamed to hello.htm or hello.html.txt ?
nash avin
Ranch Hand

Joined: Nov 13, 2003
Posts: 96
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

Joined: Nov 13, 2003
Posts: 96
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing of html and jsp using tomcat 5.0.16
 
Similar Threads
Perl/Cgi in Tomcat 5.5
abt tomcat 404 error ..
how to use eclipse with tomcat?
Displaying a .jsp page using Tomcat Server
tomcat incommunicado