This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where should I place the *.shtml file in the Java Web Server

 
Muffazal Tikiwala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a servlet and a *.shtml file for Server Side Include to pass parameters to the servlet. But when I try to invoke the .shtml file from the browser I got an error message "File not found".
The method I used to invoke the .shtml file is:
http://localhost:8080/filename.shtml
I had saved the .shtml file in the Java Web Server directory
I want to know where I should place the .shtml file in the Java Web Server so that it can be run from the browser and the result sent to the client.
Please help
 
Suneel Setlur
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Put the .shtml file in your document root.In the public_html directory of the javawebserver.

------------------
Suneel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic