How do I mix JSP and SSI #include?

Alex Chaffee

If you're just including raw HTML, use the #include directive as usual inside your .jsp file.


<!--#include file="data.inc"-->

But it's a little trickier if you want the server to evaluate any JSP code that's inside the included file. Ronel Sumibcay (ronel@LIVESOFTWARE.COM) says: If your data.inc file contains jsp code you will have to use


<%@ vinclude="data.inc" %>
The <!--#include file="data.inc"--> is used for including non-JSP files.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact