File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "newbie - *.html under webapps folder" Watch "newbie - *.html under webapps folder" New topic

newbie - *.html under webapps folder

soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300

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 ?

Thamarai Sivam

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.

soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300
Thanks Thamarai, I totally missed on that one
I agree. Here's the link:
subject: newbie - *.html under webapps folder
It's not a secret anymore!