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=""-->

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 file contains jsp code you will have to use

<%@ vinclude="" %>
The <!--#include file=""--> 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