Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to create .shtml file

Featured Replies

Hello All,

 

This is my first post on this forum. I am experienced in Mainframe technology and new to Website design.

 

I would like to know how to use .shtml file in HTML pages (Apache Tomcat 6) so as to include files like header, footer.

 

I have gone thru some websites and tried changing Tomcat's Web.xml file to remove comment symbol to enable SSI servlets. Please find below my index.shtml file.

 

index.shtml:

 

<body>

 

<!--#include file="Header.html" -->

 

<h1> Inside Home.shtml file !!!! </h1>

 

<!--#include file="Footer.html" -->

 

</body>

 

 

But contents of included files "Header.html & Footer.html" are not getting displayed. However this shtml file content (<h1> ) is getting displayed.

 

Please let me know how can I get the contents of the included files using shtml.

 

Thanks,

Srivathsan.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.