File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes In which directory  do I place html files on tomcat3.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "In which directory  do I place html files on tomcat3.1" Watch "In which directory  do I place html files on tomcat3.1" New topic
Author

In which directory do I place html files on tomcat3.1

Hema Kumar
Greenhorn

Joined: Oct 06, 2000
Posts: 9
I'm having problems in placing the html file on tomcat3.1
Any help would be greatly appreciated.
thank you
Hema
Balki Dhar
Greenhorn

Joined: Dec 15, 2005
Posts: 18
you can put your html files in any of the applications directory(e.g examples).
The path could be "jakarta-tomcat\webapps\examples". In this directory you can put the HTML, say test.html, then you can access the HTML file using the URL localhost:8080/examples/test.html.
you can create a subdirectory, say test, and put the file there. Then the URL would be localhost:8080/examples/test/test.html.
Balki
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Hema,
Balki is right. Please have a look at here http://www.javaranch.com/ubb/Forum7/HTML/000559.html for the dir structure of a web application which follows servlet 2.2 API. All html,jsp and other images go under the root of your web application. All java classes including servlets go under Web-inf dir which is under the root of your appln. There is another 'lib' dir under the root of your appln which is used to put .jar files.
One more point to make it more clear is you can even group all your related html or jsp files and put them under a sub directory under your root of the web appln. In other words
and you can call it from browser like this.
http://localhost:8080/webappn1/login/login.html OR http://localhost:8080/webappn1/logout/logout.html
regds
maha anna

[This message has been edited by maha anna (edited October 23, 2000).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In which directory do I place html files on tomcat3.1