File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes newbie - *.html under webapps folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "newbie - *.html under webapps folder" Watch "newbie - *.html under webapps folder" New topic
Author

newbie - *.html under webapps folder

soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300
Hi,

I am going through HF Servlets & JSP and on page 76 the author instructs to place an html page ( the form.html ) in a folder under tomcat/webapps and says that it would show up when accessed via localhost:8080/myFolder/form.html. I didn't think it would and it did not.

This html page shows up only if I put it under webapps/ROOT. Am I missing something ?

thanks,
Soumya.
Thamarai Sivam
Greenhorn

Joined: Sep 06, 2005
Posts: 3
Hi Soumya,

You have to configure the server.xml file, add a tag like below in it, instead of "examples" give your folder name

<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">

Restart your server and try again.

Regards,
Thamarai
soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300
Thanks Thamarai, I totally missed on that one
 
wood burning stoves
 
subject: newbie - *.html under webapps folder
 
Similar Threads
Problem: requested resource not available
Tomcat installation
page not found error
Need help with an example from the HeadFirst JSP and Servlets book
form.html not displayed