• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Hema Kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having problems in placing the html file on tomcat3.1
Any help would be greatly appreciated.
thank you
Hema
 
Balki Dhar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic