Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

including .inc files in a shtml file

 
Prasanna Kumar Dasari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Its urgent. Can anybody help me in including .inc file in a shtml file? I have tomcat server with me. I tried a lot with tomcat. I removed comments for the ssi nodes and tested but it didn't worked.

In the shtml files, the header and footer part have been written in a .inc file and the code looks something like this,

..
.
.
.
.
</div> <!-- /content -->

<!--#include file="includes/footer.inc" -->


<!-- begin DHTML MODAL POPUP WINDOWS -->
<div id="pop_curtain"> </div>
.
.
.
.
.

but still I am not able to see the footer in the page. Kindly help me in this issue.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using Tomcat, why are you using shtml and Apache-style server includes?

If you want to use Apache, use Apache. If you want to use Tomcat, use JSP mechanisms.
 
Prasanna Kumar Dasari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for your reply. I am bit unaware of the servers that has to be used for this. Anyways, thanks for your suggestion. So, let me know first and correct me if I'm going wrong somewhere. I have to go for apache server for this? Is this right?

If you don't mind, could you please give the step by step instructions on how to go with this issue.

Thank you so much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic