File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes including .inc files in a shtml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "including .inc files in a shtml file" Watch "including .inc files in a shtml file" New topic
Author

including .inc files in a shtml file

Prasanna Kumar Dasari
Greenhorn

Joined: Oct 22, 2008
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61216
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prasanna Kumar Dasari
Greenhorn

Joined: Oct 22, 2008
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: including .inc files in a shtml file