{"id":50,"date":"2005-12-07T22:30:39","date_gmt":"2005-12-08T03:30:39","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/?p=50"},"modified":"2005-12-07T22:30:39","modified_gmt":"2005-12-08T03:30:39","slug":"jsp-include-me","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2005\/12\/07\/jsp-include-me\/","title":{"rendered":"JSP Include Me"},"content":{"rendered":"<p>Sometime back I wrote <a href=\"http:\/\/www.juixe.com\/techknow\/index.php\/2005\/09\/27\/import-script-import-css-import-php\/\" title=\"Import Script, Import CSS, Import PHP\">Import Script, Import CSS, Import PHP<\/a> where I showed how to import external files in PHP and JSP.  At this time I want to elaborate a little more on importing external JSP files from another JSP.  One way to import another JSP files to statically import it using the following construct:<\/p>\n<pre>\n&lt;%@ include file=&quot;path\/to\/file.jsp&quot; %&gt;\n<\/pre>\n<p>For the best performance use the above method for importing JSP code from another JSP file.  To dynamically include a JSP file into another one you can use the following:<\/p>\n<pre>\n&lt;jsp:include page=&quot;path\/to\/file.jsp&quot; \/&gt;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sometime back I wrote Import Script, Import CSS, Import PHP where I showed how to import external files in PHP and JSP. At this time I want to elaborate a little more on importing external JSP files from another JSP. One way to import another JSP files to statically import it using the following construct: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[15,3],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-O","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/50"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":0,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}