This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie - *.html under webapps folder